protected void doCompile(boolean pValidating, File pTempDir, URL pURL, HttpServletResponse pResponse)
throws ServletException, IOException {
Generator gen = new GeneratorImpl();
gen.setTargetDirectory(new File(pTempDir, "src"));
gen.setValidating(pValidating);
gen.setSchemaReader(new JAXBSchemaReader());
gen.setEntityResolver(new StoringEntityResolver(new File(pTempDir, "schema")));
try {
gen.generate(pURL);
} catch (Exception e) {
throw new ServletException(e);