public JavaModelInput getJavaModelInput() throws JAXBException {
JavaClass[] elinkClasses = createClassModelFromOXM(dynamicClassLoader);
// Use the JavaModel to setup a Generator to generate an EclipseLink project
OXMJavaModelImpl javaModel = new OXMJavaModelImpl(dynamicClassLoader, elinkClasses);
for (JavaClass javaClass : elinkClasses) {
try {
((OXMJavaClassImpl) javaClass).setJavaModel(javaModel);
} catch (ClassCastException cce) {
((OXMObjectFactoryImpl) javaClass).setJavaModel(javaModel);