public void addName(String type,String name){
  if (containsName(type,name)) {
    return;
  }
  List<CarLoad> loads=listCarLoads.get(type);
  if (loads == null) {
    log.debug("car type ({}) does not exist",type);
    return;
  }
  loads.add(0,new CarLoad(name));
  maxNameLength=0;
  setDirtyAndFirePropertyChange(LOAD_CHANGED_PROPERTY,null,name);
}

public void addName ( String type , String name ) { if ( containsName ( type , name ) ) { return ; } List < CarLoad > loads = listCarLoads . get ( type ) ; if ( loads == null ) { log . debug ( "car type ({}) does not exist" , type ) ; return ; } loads . add ( 0 , new CarLoad ( name ) ) ; maxNameLength = 0 ; setDirtyAndFirePropertyChange ( LOAD_CHANGED_PROPERTY , null , name ) ; }
add a load name for the car type .
