code: public long getLongConfigAttribute(Map<String, Object> props, String key, long defaultValue) {
          if (props.containsKey(key)) {
              return (Long) props.get(key);
          }
          return defaultValue;
      }
docs: Returns the value for the configuration attribute matching the key provided. If the value does not exist or is empty, the
  provided default value will be returned.