private void putRuleInCorrectContainer(
     AuditableBeanWrapper<RuleBean> ruleBeanWrapper, RulesPostImportContainer importContainer) {
   if (!ruleBeanWrapper.isSavable()) {
     importContainer.getInValidRuleDefs().add(ruleBeanWrapper);
     importContainer
         .getInValidRules()
         .put(ruleBeanWrapper.getAuditableBean().getOid(), ruleBeanWrapper);
   } else if (ruleBeanWrapper.getAuditableBean().getId() == null) {
     importContainer.getValidRuleDefs().add(ruleBeanWrapper);
     importContainer
         .getValidRules()
         .put(ruleBeanWrapper.getAuditableBean().getOid(), ruleBeanWrapper);
   } else if (ruleBeanWrapper.getAuditableBean().getId() != null) {
     importContainer.getDuplicateRuleDefs().add(ruleBeanWrapper);
     importContainer
         .getValidRules()
         .put(ruleBeanWrapper.getAuditableBean().getOid(), ruleBeanWrapper);
   }
 }
 private void putRuleSetInCorrectContainer(
     AuditableBeanWrapper<RuleSetBean> ruleSetBeanWrapper,
     RulesPostImportContainer importContainer) {
   if (!ruleSetBeanWrapper.isSavable()) {
     importContainer.getInValidRuleSetDefs().add(ruleSetBeanWrapper);
   } else if (getExpressionService()
       .getEventDefinitionCRF(ruleSetBeanWrapper.getAuditableBean().getTarget().getValue())
       .getStatus()
       .isDeleted()) {
     importContainer.getInValidRuleSetDefs().add(ruleSetBeanWrapper);
   } else if (ruleSetBeanWrapper.getAuditableBean().getId() == null) {
     importContainer.getValidRuleSetDefs().add(ruleSetBeanWrapper);
     importContainer
         .getValidRuleSetExpressionValues()
         .add(ruleSetBeanWrapper.getAuditableBean().getTarget().getValue());
   } else if (ruleSetBeanWrapper.getAuditableBean().getId() != null) {
     importContainer.getDuplicateRuleSetDefs().add(ruleSetBeanWrapper);
   }
 }