if (pojoName == null) {
throw new MojoExecutionException("You must specify an entity name to continue.");
}
ArtifactUninstaller uninstaller = new ArtifactUninstaller(project, pojoName, installedDirectory, genericCore);
uninstaller.execute();
String hibernateCfgLocation = installedDirectory + "/src/main/resources/hibernate.cfg.xml";
// remove entity from hibernate.cfg.xml
// this is to allow using hibernate.cfg.xml from core module
if (project.getPackaging().equals("war") && project.hasParent()) {