if (ruleName == null || ruleName.length() == 0) {
throw new Exception("Did not specify the name of the rule to get");
}
Map<String, String> allScripts = client.getAllRules();
for (String script : allScripts.values()) {
List<String> rules = client.splitAllRulesFromScript(script);
for (String rule : rules) {
if (ruleName.equals(client.determineRuleName(rule))) {
Configuration resultConfig = result.getComplexResults();
resultConfig.put(new PropertySimple("ruleDefinition", rule));
return result;