* @throws MarshallingException
*/
public static Element marshall(XMLObject xmlObject) throws MarshallingException {
Element element;
synchronized (lock) {
MarshallerFactory marshallerFactory = Configuration.getMarshallerFactory();
Marshaller marshaller = marshallerFactory.getMarshaller(xmlObject);
element = marshaller.marshall(xmlObject);
}
return element;
}