public String[] listEntries(int type, int state) {
public String[] listEntries(int type) {
  public String[] listEntries(int type, int state) {    List l = new ArrayList();    synchronized (statusMap) {      for (Iterator it = statusMap.values().iterator(); it.hasNext(); ) {        StatusEntry se = (StatusEntry)it.next();        if (se != null && se.type == type && se.currentState == state) {          l.add(se.name);        }      }    }    return (String[])l.toArray(new String[0]);  }