init(JAXBModelFactory.create(riContext, classes));
}
private final void init(RuntimeTypeInfoSet set) throws JAXBException {
Builder builder = new BuilderImpl();
new ReaderIntrospector(builder, set);
WriterIntrospector wIntro = new WriterIntrospector(builder, set);
Map<Class, QName> c2type = wIntro.getClassToType();
context = builder.compile();
marshaller = new MarshallerImpl(this, context);
unmarshaller = new UnmarshallerImpl(this, c2type, context);
logger.info("Created SXC JAXB Context.");
}