editedDirective = waf.getLastWafRuleDirective();
}
RealTimeProtectionGeneratorFactory factory = new RealTimeProtectionGeneratorFactory(
wafRuleDao, wafRuleDirectiveDao);
RealTimeProtectionGenerator generator = factory.getTracker(waf.getWafType().getName());
if (generator != null) {
if (editedDirective == null) {
editedDirective = generator.getDefaultDirective(waf);
}
newWafRuleList = generator.generateRules(waf, editedDirective, application);
waf.addWafRules(newWafRuleList);
waf.setLastWafRuleDirective(editedDirective);
saveOrUpdateRules(waf, editedDirective);
storeWaf(waf);
}