final Map properties) throws RuleExecutionSetCreateException {
try {
// Prepare the DOM source
final Source source = new DOMSource( ruleExecutionSetElement );
final XmlPackageReader xmlPackageReader = new XmlPackageReader( new SemanticModules() );
// Prepare the result
final SAXResult result = new SAXResult( xmlPackageReader.getParser() );
// Create a transformer
final Transformer xformer = TransformerFactory.newInstance().newTransformer();
// Traverse the DOM tree
xformer.transform( source,
result );
final PackageDescr packageDescr = xmlPackageReader.getPackageDescr();
// pre build the package
final PackageBuilder builder = new PackageBuilder();
builder.addPackage( packageDescr );
final Package pkg = builder.getPackage();