for (Object rule : rules) {
if (keyPattern != null && keyPattern.length() != 0) {
ruleList.add(new WrappedGroovyRule(String.valueOf(rule), keyPattern,extraPackagesStr));
} else {
if(tableSlotMap!=null&&dbTableMap!=null&&isTableRule){
ruleList.add(new TableVirtualNodeRule(String.valueOf(rule), tableSlotMap,extraPackagesStr));
}else{
ruleList.add(new GroovyRule<String>(String.valueOf(rule),extraPackagesStr));
}
}
}