String namespace = "";
if(element instanceof RutaStatement) {
RutaStatement rs = (RutaStatement) element;
namespace = rs.getParent().getScript().getRootBlock().getNamespace();
} else if(element instanceof AbstractRuleElement) {
AbstractRuleElement are = (AbstractRuleElement) element;
are.getRule().getParent().getScript().getRootBlock().getNamespace();
}
dra.setElement(verbalizer.verbalize(element));
dra.setApplied(ruleApply.getApplied());
dra.setTried(ruleApply.getTried());
dra.setId(((AbstractRule) element).getId());