for (Rule rule : rules) {
if (rule.getId().equals(ruleId)) {
// can only display pattern rules
try {
PatternRule patternRule = (PatternRule) rule;
String tempRuleString = patternRule.toXML();
tempRuleString = tempRuleString.replaceAll("\\<",
"<").replaceAll("\\>", ">");
fetchedRuleString = fetchedRuleString.concat(
tempRuleString).concat("<br>");
break;