code: public static Properties configToProperties(Config config, String prefix) {
      return configToProperties(config, Optional.of(prefix));
    }
docs: Convert a given {@link Config} instance to a {@link Properties} instance.
  
  @param config the given {@link Config} instance
  @param prefix only properties whose name starts with the prefix will be returned.
  @return a {@link Properties} instance