public static Archive buildModelArchive(InputStream mappingModel, String modelJavaPackage) throws EDIConfigurationException, ClassNotFoundException, IOException, SAXException, IllegalNameException {
BeanWriter.setGenerateFromEDINR(true);
try {
AntRunner antRunner = new AntRunner("build.xml");
EJC ejc = new EJC();
antRunner.run("delete");
ejc.compile(mappingModel, modelJavaPackage, "./target/ejc/src");
antRunner.run("compile");
return new Archive(new ZipInputStream(new FileInputStream("./target/ejc/ejc.jar")));
} finally {
BeanWriter.setGenerateFromEDINR(false);