Map<String, XmlBindings> xmlBindings = getXmlBindingsFromProperties(properties, classLoader);
for (String key : xmlBindings.keySet()) {
typesToBeBound = getXmlBindingsClasses(xmlBindings.get(key), classLoader, typesToBeBound);
}
JaxbClassLoader loader = new JaxbClassLoader(classLoader, typesToBeBound);
typesToBeBound = updateTypesWithObjectFactory(typesToBeBound, loader);
JavaModelInputImpl inputImpl = new JavaModelInputImpl(typesToBeBound, new JavaModelImpl(loader));
try {
Generator generator = new Generator(inputImpl, inputImpl.getJavaClassToType(), xmlBindings, classLoader);
return createContext(generator, properties, classLoader, loader, typesToBeBound);