// put JAXBContextFactory into the impl package
JClass factory = outline.generateStaticClass(JAXBContextFactory.class,implPkg);
// and then put jaxb.properties to point to it
JPropertyFile jaxbProperties = new JPropertyFile("jaxb.properties");
targetPackage.addResourceFile(jaxbProperties);
jaxbProperties.add(
JAXBContext.JAXB_CONTEXT_FACTORY,
factory.fullName());
}