&& destNode.equals(lastdn)) { currentCommunityXML = displayStatus(robustnessCommunity);
&& destNode.equals(lastdn)) {
    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))          currentCommunityXML = displayStatus(robustnessCommunity);          writeSuccess(format); //this is just for refresh, don't do a publishAdd.        }        else {          try {            if(command.equals("Move")) {              //AgentControl ac = createAgentControl(command);              //addAgentControl(ac);              publishHealthMonitorMove(robustnessCommunity);            }            else { //publish remove tickets to remove agents              AgentControl ac = createAgentControl(command);              addAgentControl(ac);            }          } catch (Exception e) {            writeFailure(e);            return;          }          currentCommunityXML = displayStatus(robustnessCommunity);          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);      } else if(command.equals("showAgent")) {        showAgentAttributes(format, value);      } else if (command.equalsIgnoreCase("modCommAttr")) {        modifyCommunityAttribute(robustnessCommunity, attrId, attrValue);      }    }