if (properties == null || properties.get(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY) == null) {
throw new JAXBException(org.eclipse.persistence.exceptions.JAXBException.oxmKeyNotFound());
}
DynamicJAXBContext dContext = new DynamicJAXBContext(classLoader);
Metadata oxmMetadata = new OXMMetadata(dContext.getDynamicClassLoader(), properties);
dContext.initializeFromMetadata(oxmMetadata, dContext.getDynamicClassLoader(), properties);
return dContext;
}