PomModel pomModel = MinimalPomParser.parse( rootPath + "/pom.xml",
fis);
KieBuilderImpl.validatePomModel( pomModel ); // throws an exception if invalid
GAVImpl gav = ( GAVImpl ) KieFactory.Factory.get().newGav( pomModel.getGroupId(),
pomModel.getArtifactId(),
pomModel.getVersion() );
String str = KieBuilderImpl.generatePomProperties( gav );
log.info( "Recursed up folders, found and used pom.xml " + file );