if(log.isDebugEnabled()) { log.error("Illegal number: "+sLimit);
if(log.isErrorEnabled()) { log.error("Illegal number: "+sLimit, nfe);
  private void makeThreadGraph() {    // will gather these parameters:    String UID;    String agentName;    int limit;    boolean isDown;    // FIXME: should have a single popup:    //    UID=<default to empty>    //    AgentName=<default to empty>    //    Limit=<default to 200, add "no-limit" checkbox + grey-out>    //    Trace=<option box of "children"/"parents", default to children>     // awkward popups for now:    UID = JOptionPane.showInputDialog("Plan Object UID: ");     if (UID == null) {      return;    }    agentName = JOptionPane.showInputDialog("Agent name: ");    if (agentName == null) {      return;    }    String sLimit = JOptionPane.showInputDialog("Limit (e.g. 200): ");    if (sLimit == null) {      return;    }    try {      limit = Integer.parseInt(sLimit);    } catch (NumberFormatException nfe) {      if(log.isDebugEnabled()) {        log.error("Illegal number: "+sLimit);      }      return;    }    String sIsDown = JOptionPane.showInputDialog("TraceChildren (true/false): ");    if (sIsDown == null) {      return;    }    isDown = (!("false".equalsIgnoreCase(sIsDown)));    // create the graph    makeThreadGraph(UID, agentName, isDown, limit);  }