return sb.toString();
}
List<FactMetaModel> toModel(String drl) throws DroolsParserException {
if ( drl != null && (drl.startsWith( "#advanced" ) || drl.startsWith( "//advanced" )) ) {
throw new DroolsParserException( "Using advanced editor" );
}
DrlParser parser = new DrlParser();
PackageDescr pkg = parser.parse( drl );
if ( parser.hasErrors() ) {
throw new DroolsParserException( "The model drl " + drl + " is not valid" );
}
if ( pkg == null ) return new ArrayList<FactMetaModel>();
List<TypeDeclarationDescr> types = pkg.getTypeDeclarations();
List<FactMetaModel> list = new ArrayList<FactMetaModel>( types.size() );