code: public double getDouble(String name, double defaultValue) {
          try {
              String value = getString(name, null);
              if (!StringUtils.isNullOrEmpty(value)) {
                  return Double.parseDouble(value.trim());
              }
          } catch (NumberFormatException e) {
              log.warn("Failed to parse double for " + name + USING_DEFAULT_OF
                  + defaultValue);
          }
  
          return defaultValue;
      }
docs: Returns the double value for the specified name. If the name does not
  exist or the value for the name can not be interpreted as a double, the
  defaultValue is returned.
  
  @param name
  @param defaultValue
  @return name value or defaultValue