File outputDir = new File(configuration.getOutputLocation(), "src");
JAXBSchemaReader reader = new JAXBSchemaReader();
reader.setSupportingExtensions(true);
GeneratorImpl generator = new GeneratorImpl();
generator.setTargetDirectory(outputDir);
generator.setForcingOverwrite(false);
generator.setSchemaReader(reader);
for (int i = 0; i < xmlObjectsVector.size(); i++) {
SchemaSG sg = generator.generate((InputSource) xmlObjectsVector.elementAt(i));
ObjectSG[] elements = sg.getElements();
for (int j = 0; j < elements.length; j++) {
XsQName qName = elements[j].getName();
JavaQName name = elements[j].getClassContext().getXMLInterfaceName();
mapper.addTypeMappingName(new QName(qName.getNamespaceURI(), qName.getLocalName()),