final org.uberfire.java.nio.file.Path nioRoot = Paths.convert( projectRoot );
pathToPOMXML = nioRoot.resolve( "pom.xml" );
if ( ioService.exists( pathToPOMXML ) ) {
throw new FileAlreadyExistsException( pathToPOMXML.toString() );
}
ioService.write( pathToPOMXML,
pomContentHandler.toString( pomModel ) );
//Don't raise a NewResourceAdded event as this is handled at the Project level in ProjectServices