code: public static Integer getInt(Config config, String path, Integer def) {
      if (config.hasPath(path)) {
        return Integer.valueOf(config.getInt(path));
      }
      return def;
    }
docs: Return {@link Integer} value at <code>path</code> if <code>config</code> has path. If not return <code>def</code>
  
  @param config in which the path may be present
  @param path key to look for in the config object
  @return {@link Integer} value at <code>path</code> if <code>config</code> has path. If not return <code>def</code>