*/ return null;
  private String emitDACs(String assetName, String assetType, boolean state, String setMsgLog, String setRestart) {      DefenseConstants.OMCStrBoolPoint omcState = ( state ? DefenseConstants.BOOL_TRUE : DefenseConstants.BOOL_FALSE );            String msg = "Published Applicability conditions on asset ["+assetName+":"+assetType+"] for Foo";      try {                    blackboard.openTransaction();          ServletApplicabilityCondition cond1 = (ServletApplicabilityCondition)DefenseApplicabilityCondition.find("Foo", assetName+":"+assetType, blackboard);          if (cond1 == null) { // don't have a condition for this asset, so create a new one along with its opModes                            cond1 = new ServletApplicabilityCondition(assetType, assetName, "Foo", omcState);                blackboard.publishAdd(cond1);                cond1.setUID(uidService.nextUID());                ServletMonitoringEnabler sme = new ServletMonitoringEnabler(assetType, assetName, "Foo");                sme.setUID(uidService.nextUID());                blackboard.publishAdd(sme);                ServletDefenseEnabler sde = new ServletDefenseEnabler(assetType, assetName, "Foo");                sde.setUID(uidService.nextUID());                blackboard.publishAdd(sde);          }          blackboard.closeTransaction();          blackboard.openTransaction();            cond1.setValue(omcState.toString());            blackboard.publishChange(cond1);               blackboard.closeTransaction();                    blackboard.openTransaction();          DefenseApplicabilityCondition cond2 = DefenseApplicabilityCondition.find("Msglog", assetName+":"+assetType, blackboard);          if (cond2 != null && setMsgLog != null && setMsgLog.equalsIgnoreCase("TRUE")) { //let's create it!            cond2.setValue(omcState.toString());            blackboard.publishChange(cond2);            msg = msg+", Msglog";          } else { // see if we should publish MsgLog            if (setMsgLog != null && setMsgLog.equalsIgnoreCase("TRUE") ) {                                 cond2 = new ServletApplicabilityCondition(assetType, assetName, "Msglog", omcState);                blackboard.publishAdd(cond2);                cond2.setUID(uidService.nextUID());                ServletMonitoringEnabler sme2 = new ServletMonitoringEnabler(assetType, assetName, "Msglog");                sme2.setUID(uidService.nextUID());                blackboard.publishAdd(sme2);                ServletDefenseEnabler sde2 = new ServletDefenseEnabler(assetType, assetName, "Msglog");                sde2.setUID(uidService.nextUID());                blackboard.publishAdd(sde2);                msg = msg+", New Msglog";                blackboard.closeTransaction();                blackboard.openTransaction();                            }          }/*          DefenseApplicabilityCondition cond3 = DefenseApplicabilityCondition.find("Restart", assetName+":"+assetType, blackboard);          if (cond3 != null) { //let's create it!            cond3.setValue(omcState.toString());            blackboard.publishChange(cond3);            msg = msg+", Restart";          }*/                    DefenseApplicabilityCondition cond3 = DefenseApplicabilityCondition.find("Restart", assetName+":"+assetType, blackboard);          if (cond3 != null && setRestart != null && setRestart.equalsIgnoreCase("TRUE")) { //let's create it!            cond3.setValue(omcState.toString());            blackboard.publishChange(cond3);            msg = msg+", Restart";          } else { // see if we should publish MsgLog            if (setRestart != null && setRestart.equalsIgnoreCase("TRUE") ) {                                 cond3 = new ServletApplicabilityCondition(assetType, assetName, "Restart", omcState);                blackboard.publishAdd(cond3);                cond3.setUID(uidService.nextUID());                ServletMonitoringEnabler sme2 = new ServletMonitoringEnabler(assetType, assetName, "Restart");                sme2.setUID(uidService.nextUID());                blackboard.publishAdd(sme2);                ServletDefenseEnabler sde2 = new ServletDefenseEnabler(assetType, assetName, "Restart");                sde2.setUID(uidService.nextUID());                blackboard.publishAdd(sde2);                msg = msg+", New Restart";                blackboard.closeTransaction();                blackboard.openTransaction();                            }          }                              msg = msg+". All = "+state;                    blackboard.closeTransaction();          if (logger.isDebugEnabled()) logger.debug(msg+" All = "+state);          if (eventService.isEventEnabled()) {              eventService.event(msg);          }      } catch (Exception e) {          logger.warn("Got exception trying to publish conditions", e);          if ( blackboard.isTransactionOpen() ) { blackboard.closeTransaction(); }      }                 return msg;  }