if (listSelectionModel!=null)
  public Object clone() throws CloneNotSupportedException  {    DefaultTreeSelectionModel cloned =       (DefaultTreeSelectionModel) super.clone();        // Clone the selection and the list selection model.    cloned.selection = (TreePath[]) selection.clone();    cloned.listSelectionModel =       (DefaultListSelectionModel) listSelectionModel.clone();    return cloned;  }