if ( level != null ) {
JavaDialectConfiguration javaConf = (JavaDialectConfiguration) configuration.getDialectConfiguration( "java" );
javaConf.setJavaLanguageLevel( level );
}
SemanticModules modules = configuration.getSemanticModules();
modules.addSemanticModule( new BPMNSemanticModule() );
modules.addSemanticModule( new BPMNDISemanticModule() );
modules.addSemanticModule( new BPMNExtensionsSemanticModule() );
modules.addSemanticModule( new ProcessSemanticModule() );
XmlProcessReader xmlReader = new XmlProcessReader( modules, Thread.currentThread().getContextClassLoader() );
List<org.kie.api.definition.process.Process> processes =
(List<org.kie.api.definition.process.Process>) xmlReader.read( new StringReader( input ) );
if (processes != null) {