code: public static <T> Optional<T> getObjectOptional(Config config, String path, Class<T> clazz) {
          return Optional.ofNullable(getObject(config, path, clazz));
      }
docs: Get a configuration as Java object. Return {@code null} if missing or wrong type.
  
  @param config
  @param path
  @return