public void register(Train train){
  Integer oldSize=Integer.valueOf(_trainHashTable.size());
  _trainHashTable.put(train.getId(),train);
  int id=Integer.parseInt(train.getId());
  if (id > _id) {
    _id=id;
  }
  setDirtyAndFirePropertyChange(LISTLENGTH_CHANGED_PROPERTY,oldSize,Integer.valueOf(_trainHashTable.size()));
}

public void register ( Train train ) { Integer oldSize = Integer . valueOf ( _trainHashTable . size ( ) ) ; _trainHashTable . put ( train . getId ( ) , train ) ; int id = Integer . parseInt ( train . getId ( ) ) ; if ( id > _id ) { _id = id ; } setDirtyAndFirePropertyChange ( LISTLENGTH_CHANGED_PROPERTY , oldSize , Integer . valueOf ( _trainHashTable . size ( ) ) ) ; }
remember a namedbean object created outside the manager .
