else { AgentControl ac = createAgentControl(command); addAgentControl(ac); }
    private void displayParams(String command, String value) throws IOException    {      if(command.equals("") || command.equals("showCommunity"))        showCommunityData(format, robustnessCommunity);      else if(command.equals("community"))        showCommunityAttributes(format, robustnessCommunity);      else if(command.equals("control"))        controlCommunity(format, robustnessCommunity);      else if(command.equals("Move") || command.equals("Remove")) {        if(operation.equals(lastop) && mobileAgent.equals(lastma) && origNode.equals(laston)          && destNode.equals(lastdn))// && forceRestart.equals(lastfs))          writeSuccess(format); //this is just for refresh, don't do a publishAdd.        else {          try {              //AgentControl ac = createAgentControl(command);              //addAgentControl(ac);              publishHealthMonitorMove(robustnessCommunity);          } catch (Exception e) {            writeFailure(e);            return;          }          writeSuccess(format);        }      }      else if(command.equals("refresh"))        writeSuccess(format);      else if(command.equals("removeTicket")) {        try {            UID uid = UID.toUID(value);            AgentControl ac = queryAgentControl(uid);            if (ac != null) {              removeAgentControl(ac);            }        } catch (Exception e) {            writeFailure(e);            return;        }        writeSuccess(format);      }      else if(command.equals("loadBalance")) {        if(currentCommunityXML.equals(""))          currentCommunityXML = displayStatus(robustnessCommunity);        log.debug("current community status xml: \n" + currentCommunityXML);        loadBalance(robustnessCommunity);        writeSuccess(format);      }    }