for ( AttributeDescr attribute : descr.getAttributes().values() ) {
rule.getAttributes().put( attribute.getName(),
attribute.getValue() );
}
Consequence consequence = visitConsequence( rule,
descr.getConsequence() );
// TODO: NEEDS TO BE FIXED
// rule.getMetadata().putAll( descr.get );
rule.setConsequencePath( consequence.getPath() );
rule.setConsequenceType( consequence.getConsequenceType() );
rule.setLineNumber( descr.getLine() );
data.add( rule );
rulePackage.getRules().add( rule );