private final void addByName ( final String name , final Unit newUnit ) throws UnitExistsException { if ( name != null ) { addUnique ( nameMap , canonicalize ( name ) , newUnit ) ; } }
Adds a unit to the database by name .