log.debug("SetState: agent=" + agentId + " state=" + state);
  public void setState(String state) {    log.debug("SetState: agent=" + agentId + " state=" + state);    currentState = state;    ModificationItem mods[] = new ModificationItem[1];    mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,      new BasicAttribute("RunState", currentState));    commSvc.modifyEntityAttributes(communityName, agentId.toString(), mods);  }