UtilMisc.toMap("uomId", weightUomId, "uomIdTo", "WT_oz"));
if (uomConversion == null || UtilValidate.isEmpty(uomConversion.getString("conversionFactor"))) {
return ServiceUtil.returnError("Unsupported weightUom [" + weightUomId + "] for ShipmentPackage " +
spKeyString + ", could not find a conversion factor for WT_oz");
}
weight = weight.multiply(uomConversion.getBigDecimal("conversionFactor"));
}
DecimalFormat df = new DecimalFormat("#");
UtilXml.addChildElementValue(requestElement, "WeightInOunces", df.format(weight.setScale(0, BigDecimal.ROUND_CEILING)), requestDocument);