code: public static String get(Properties props, String name, String defval) {
      String value = props.getProperty(name);
      if (value == null)
        value = defval;
      return value;
    }
docs: Returns the value of an optional property, if the property is
  set.  If it is not set defval is returned.