if (metadataMap != null) {
Map<String, Map<String, OXMMetadataSource>> properties = new HashMap<String, Map<String, OXMMetadataSource>>();
properties.put(JAXBContextProperties.OXM_METADATA_SOURCE, metadataMap);
try {
DynamicJAXBContext jCtx = DynamicJAXBContextFactory.createContextFromOXM(xrdecl, properties);
oxProject = jCtx.getXMLContext().getSession(0).getProject();
oxProject.setName(xrService.getName().concat(OX_PRJ_SUFFIX));
// may need to alter descriptor alias
if (oxProject.getAliasDescriptors() != null) {
Map<String, ClassDescriptor> aliasDescriptors = new HashMap<String, ClassDescriptor>();