GLMDebug.ERROR("InventoryBG", "getDouble(), Inventory cannot determine type of measure");
if (logger.isErrorEnabled()) { logger.error("getDouble(), Inventory cannot determine type of measure"); }
  private double getDouble(Scalar measure) {    double result = Double.NaN;    if (measure instanceof Volume) {      result = ((Volume)measure).getGallons();    } else if (measure instanceof Count) {      result = ((Count)measure).getEaches();    } else if (measure instanceof Mass) {      result = ((Mass)measure).getShortTons();    } else {      GLMDebug.ERROR("InventoryBG", "getDouble(), Inventory cannot determine type of measure");    }    return result;  }	