code: public static Config getConfig(Config config, String path, Config def) {
      if (config.hasPath(path)) {
        return config.getConfig(path);
      }
      return def;
    }
docs: Return {@link Config} 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 config value at <code>path</code> if <code>config</code> has path. If not return <code>def</code>