try {
typeSystemFile = new File(project.getBuild().getDirectory(), "jcasgen/typesystem.xml");
getLog().debug("JCasGen: Writing master descriptor to in '" + typeSystemFile + "'");
typeSystemFile.getParentFile().mkdirs();
typeSystemOs = new FileOutputStream(typeSystemFile);
typeSystem.toXML(typeSystemOs);
} catch (IOException e) {
throw new MojoExecutionException(e.getMessage(), e.getCause());
} catch (SAXException e) {
throw new MojoExecutionException(e.getMessage(), e.getCause());
} finally {