final org.uberfire.java.nio.file.Path nioPath = Paths.convert( context ).resolve( fileName );
final Path newPath = Paths.convert( nioPath );
if ( ioService.exists( nioPath ) ) {
throw new FileAlreadyExistsException( nioPath.toString() );
}
ioService.write( nioPath,
RuleTemplateModelXMLPersistenceImpl.getInstance().marshal( content ),
utilities.makeCommentedOption( comment ) );