if ( file != null ) {
FileInputStream fis = null;
try {
fis = new FileInputStream( file ) ;
PomModel pomModel = MinimalPomParser.parse( rootPath + "/pom.xml",
fis);
KieBuilderImpl.validatePomModel( pomModel ); // throws an exception if invalid
ReleaseIdImpl gav = (ReleaseIdImpl) pomModel.getReleaseId();
String str = KieBuilderImpl.generatePomProperties( gav );
log.info( "Recursed up folders, found and used pom.xml " + file );
return str;