udunits/src/main/java/ucar/units/UnitDBImpl.java
private final void addByName(final String name, final Unit newUnit)
			throws UnitExistsException {
		if (name != null) {
			addUnique(nameMap, canonicalize(name), newUnit);
		}
	}
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.

@param name
The name of the unit. If <code>null</code> then the unit is
not added.
@param newUnit
The unit to be added.
@throws UnitExistsException
Attempt to redefine an existing unit.