Merge pull request #16 from adam-miller/HER-2017

Fix for HER-2017 XML representation of beans uses root node of type "script"
This commit is contained in:
Noah Levitt
2012-08-30 16:04:04 -07:00
@@ -123,7 +123,7 @@ public class BeanBrowseResource extends JobRelatedResource {
if (variant.getMediaType() == MediaType.APPLICATION_XML) {
representation = new WriterRepresentation(MediaType.APPLICATION_XML) {
public void write(Writer writer) throws IOException {
XmlMarshaller.marshalDocument(writer, "script", makePresentableMap());
XmlMarshaller.marshalDocument(writer, "beans", makePresentableMap());
}
};
} else {