JAXBMarshaller marshaller = new JAXBMarshaller(xmlContext.createMarshaller(), new JAXBIntrospector(xmlContext));
if (generator != null && generator.hasMarshalCallbacks()) {
// initialize each callback in the map
for (Iterator callIt = generator.getMarshalCallbacks().keySet().iterator(); callIt.hasNext(); ) {
MarshalCallback cb = (MarshalCallback) generator.getMarshalCallbacks().get(callIt.next());
cb.initialize(generator.getClass().getClassLoader());
}
marshaller.setMarshalCallbacks(generator.getMarshalCallbacks());
}
marshaller.setQNameToGeneratedClasses(this.qNameToGeneratedClasses);
//marshaller.setClassToGeneratedClasses(this.classToGeneratedClasses);