public void deregister(Train train){
  if (train == null) {
    return;
  }
  train.dispose();
  Integer oldSize=Integer.valueOf(_trainHashTable.size());
  _trainHashTable.remove(train.getId());
  setDirtyAndFirePropertyChange(LISTLENGTH_CHANGED_PROPERTY,oldSize,Integer.valueOf(_trainHashTable.size()));
}

public void deregister ( Train train ) { if ( train == null ) { return ; } train . dispose ( ) ; Integer oldSize = Integer . valueOf ( _trainHashTable . size ( ) ) ; _trainHashTable . remove ( train . getId ( ) ) ; setDirtyAndFirePropertyChange ( LISTLENGTH_CHANGED_PROPERTY , oldSize , Integer . valueOf ( _trainHashTable . size ( ) ) ) ; }
forget a namedbean object created outside the manager .
