waterml/src/main/java/ucar/nc2/ogc/swe/NcUnitReference.java
public static UnitReference initUom(UnitReference uom, VariableSimpleIF dataVar) {
        // @code
        String udunits = dataVar.getUnitsString();
        if (udunits == null) {  // Variable may not have a "units" attribute.
            return null;
        }

        String ucum = ErddapEDUnits.udunitsToUcum(udunits);
        uom.setCode(ucum);

        return uom;
    }
public static UnitReference initUom(UnitReference uom, VariableSimpleIF dataVar) {
        // @code
        String udunits = dataVar.getUnitsString();
        if (udunits == null) {  // Variable may not have a "units" attribute.
            return null;
        }

        String ucum = ErddapEDUnits.udunitsToUcum(udunits);
        uom.setCode(ucum);

        return uom;
    }
wml2:defaultPointMetadata/wml2:DefaultTVPMeasurementMetadata/wml2:uom