if (curNum > lastParamNumber) lastParamNumber = curNum;
  private String generateName(ConfigurableComponent cc) {    // get all properties    Iterator i = cc.getSortedLocalPropertyNames();    // find the highest numbered property of the form param-x    int lastParamNumber = -1;    while (i.hasNext()) {      String name = ((CompositeName)i.next()).last().toString();      int index = name.indexOf("param-");      if (index == -1)        continue;      try {        lastParamNumber = Integer.parseInt(name.substring(index+6));      } catch (NumberFormatException nfe) {        System.out.println("NFE: " + nfe);        // just ignore      }    }    // generate next highest numbered name    lastParamNumber++;    String name = "param-" + String.valueOf(lastParamNumber);        return name;  }