@Override
 public synchronized void setEnabled(String uid, boolean isEnabled) {
   ruleEngine.setRuleEnabled(uid, isEnabled);
   if (disabledRulesStorage != null)
     if (isEnabled) {
       disabledRulesStorage.remove(uid);
     } else {
       disabledRulesStorage.put(uid, isEnabled);
     }
 }
 protected void setDisabledRuleStorage(Storage<Boolean> disabledRulesStorage) {
   this.disabledRulesStorage = disabledRulesStorage;
   for (Rule rule : ruleEngine.getRules()) {
     String uid = rule.getUID();
     if (ruleEngine.getRuleStatus(uid).equals(RuleStatus.DISABLED)) {
       disabledRulesStorage.put(uid, false);
     } else {
       disabledRulesStorage.remove(uid);
     }
   }
 }