RuleFlowProcess process = null;
try {
InputStreamReader reader = new InputStreamReader( is );
PackageBuilderConfiguration configuration = new PackageBuilderConfiguration();
configuration.initSemanticModules();
configuration.addSemanticModule( new BPMNSemanticModule() );
configuration.addSemanticModule( new BPMNDISemanticModule() );
XmlProcessReader xmlReader = new XmlProcessReader( configuration.getSemanticModules(),
getClassLoader() );
try {
process = (RuleFlowProcess) xmlReader.read( reader );