for (int j = 0; j < nodes.size(); j++) { String node = (String)nodes.get(j); if (findListener(appServerDesc.appServer, node) == null) unattachedNodes.add(node);
if (nodes != null) { for (Iterator j = nodes.iterator(); j.hasNext(); ) { ProcessDescription pd = (ProcessDescription)j.next(); String name = pd.getName(); if (findListener(appServerDesc.appServer, name) == null) unattachedNodes.add(name); }
  public ArrayList getUnattachedNodes() {    ArrayList unattachedNodes = new ArrayList();    ArrayList appServers = model.getAppServers();    for (int i = 0; i < appServers.size(); i++) {      AppServerDesc appServerDesc = (AppServerDesc)appServers.get(i);      List nodes = getNodesOfAppServer(appServerDesc.appServer);      for (int j = 0; j < nodes.size(); j++) {        String node = (String)nodes.get(j);        if (findListener(appServerDesc.appServer, node) == null)          unattachedNodes.add(node);      }    }    return unattachedNodes;  }