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