question: public Location newLocation ( String name ) { Location location = getLocationByName ( name ) ; if ( location == null ) { _id ++ ; location = new Location ( Integer . toString ( _id ) , name ) ; Integer oldSize = Integer . valueOf ( _locationHashTable . size ( ) ) ; _locationHashTable . put ( location . getId ( ) , location ) ; setDirtyAndFirePropertyChange ( LISTLENGTH_CHANGED_PROPERTY , oldSize , Integer . valueOf ( _locationHashTable . size ( ) ) ) ; } return location ; }
target:  Finds an existing location or creates a new location if needed requires location's name creates a unique id for this location