if (getLog().isDebugEnabled()) getLog().debug (getAgentIdentifier() + " - published condition " + doubleCondition);
if (getLog().isInfoEnabled()) getLog().info (getAgentIdentifier() + " - published condition " + doubleCondition);
  public void publishCondition () {    if (!broker.hasService (org.cougaar.core.service.ConditionService.class)) {      if (getLog().isInfoEnabled())	getLog().info (getAgentIdentifier() + " - No condition service available." +		       " Servlet will not be able to set the condition.\n"+		       " Servlet needs the ConditionServiceProvider to be loaded.");      return;    }    else if (conditionService == null) {      conditionService = (ConditionService)	broker.getService (this,			   org.cougaar.core.service.ConditionService.class,			   this);      if (conditionService == null) {	if (getLog().isInfoEnabled())	  getLog().info (getAgentIdentifier() + " - No condition service available." +			 " Servlet will not be able to set the condition.\n"+			 " Servlet needs the ConditionServiceProvider to be loaded.");	return;      }      if (getLog().isDebugEnabled())	getLog().debug (getAgentIdentifier() + " - found condition service.");    }    if (didPublish)      return;    ConditionServlet.DoubleCondition doubleCondition =       new ConditionServlet.DoubleCondition(conditionName);    try {      getBlackboardService().openTransaction();      getBlackboardService().publishAdd(doubleCondition);      setCondition (doubleCondition);      if (getLog().isDebugEnabled())	getLog().debug (getAgentIdentifier() + " - published condition " + doubleCondition);    }     catch (Exception exc) {      getLog().error ("Could not publish double condition???", exc);    }    finally{     getBlackboardService().closeTransactionDontReset();    }          didPublish = true;  }