if (FileParseUtil.containsPattern(name, "\\[ Cluster \\]")) agentFilenames.add(name);
if (FileParseUtil.containsPattern(path, "\\[ Cluster \\]")) agentFilenames.add(path);
  public String[] getAgentFilenames(File directory) {    File[] files = directory.listFiles();    ArrayList agentFilenames = new ArrayList(files.length);    for (int i = 0; i < files.length; i++) {      String name = files[i].getName();      if (!name.endsWith(".ini"))        continue;      if (FileParseUtil.containsPattern(name, "\\[ Cluster \\]"))        agentFilenames.add(name);    }    return (String[])agentFilenames.toArray(new String[agentFilenames.size()]);  }