/**
  * Returns the appropriate UOM mapping for a given Java Unit.
  *
  * @param unit a Java Unit (e.g., <code>SI.METER</code>).
  * @return the corresponding UnitOfMeasure.
  * @throws IllegalArgumentException if the provided Unit is not part of the OGC SE specification.
  */
 public static UomOgcMapping get(Unit<Length> unit) throws IllegalArgumentException {
   for (UomOgcMapping uom : UomOgcMapping.values()) {
     if (uom.getUnit().equals(unit)) return uom;
   }
   throw new IllegalArgumentException(
       "'" + unit + "' is not a valid OGC SE standard Unit of Measure");
 }