JAXBRuntimeBinder annReader = new JAXBRuntimeBinder(mmgr, clr);
//jaxbConfig.put(JAXBRIContext.DEFAULT_NAMESPACE_REMAP, "DefaultNamespace");
jaxbConfig.put(JAXBRIContext.ANNOTATION_READER, annReader);
JAXBContext jaxbContext = JAXBContext.newInstance(new Class[]{obj.getClass()}, jaxbConfig);
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
marshaller.marshal(obj, node);
}
/**