if ( StringUtils.isEmpty( version ) ) {
rule.append( "list.add( drools.getRule().getName() );\n" );
</BUG>
} else {
<BUG>rule.append("list.add( drools.getRule().getName()+\"-V" + version + "\");\n");
</BUG>
}
<BUG>rule.append( "end\n" );
return rule.toString();
}</BUG>
public String createVersionedRule(String ruleName, String version) {

if ( StringUtils.isEmpty( version ) ) {
rhs = "list.add( drools.getRule().getName() );\n";
} else {
rhs = "list.add( drools.getRule().getName()+\"-V" + version + "\");\n";
}
return createCustomRule(header, packageName, ruleNames, attribute, lhs, rhs  );
}
public String createLhsRule(String[] ruleNames, String lhs) {
return createVersionedRule( null, ruleNames, null, lhs, null );
}
public String createLhsRule(String ruleName, String lhs) {
return createVersionedRule( null, new String[] { ruleName }, null, lhs, null );
}
