code: public long getLong(final String name, final long defaultValue) {
      if (containsKey(name)) {
        return Long.parseLong(get(name));
      } else {
        return defaultValue;
      }
    }
docs: Returns the long representation of the value. If the value is null, then the default value is
  returned. If the value isn't a long, then a parse exception will be thrown.