if (ctClazz.isModified()) {
getLog().info("Writing enhanced class [" + clazzName + "]");
// Trying to work around UIMA-2611, see
// http://stackoverflow.com/questions/13797919/javassist-add-method-and-invoke
ctClazz.toBytecode();
ctClazz.writeFile(project.getBuild().getOutputDirectory());
} else {
getLog().info("No changes to class [" + clazzName + "]");
}
} catch (IOException e) {
throw new MojoExecutionException("Enhanced class [" + clazzName + "] cannot be written: "