source = domHandler.marshal(objectValue, ((JAXBErrorHandler)handler).getValidationEventHandler());
} else {
source = domHandler.marshal(objectValue, null);
}
DOMResult result = new DOMResult();
XMLTransformer xmlTransformer = xmlPlatform.newXMLTransformer();
xmlTransformer.setFormattedOutput(marshaller.isFormattedOutput());
xmlTransformer.transform(source, result);
return result.getNode().getFirstChild();
}
return objectValue;
}