double computeFromFactor(String context, String unit) {
String computeFromFactor(String context, String unit) {
    double computeFromFactor(String context, String unit) {      String base = getBaseUnit(context);      if (base.equals(unit)) return 1.0;      String frombase = p.get(context, "from_"+unit);      if (frombase != null) {        return Double.valueOf(frombase).doubleValue();      } else {        String tobase = p.get(context, "to_"+unit);        if (tobase == null) {          // no info here!  Try what we extend:          return computeFromFactor(p.get(context,"extends"), unit);        }        return 1.0/Double.valueOf(tobase).doubleValue();      }    }