code: public Integer getConfigValueInt(String key, Integer dflt) {
          try {
              return Integer.parseInt(getConfigValue(key));
          } catch (Exception e) {
              return dflt;
          }
      }
docs: This is a convenience method for returning a named configuration value that is expected to be
  an integer.
  
  @param key The configuration value's key.
  @param dflt Default value.
  @return Configuration value as an integer or default value if not found or not a valid
  integer.