code: private CodePluginConfig parsePluginConfig(InputStream inputStream) {
          Gson gson = new Gson();
          CodePluginConfig config = gson.fromJson(new InputStreamReader(inputStream), CodePluginConfig.class);
          logger.log(Level.INFO, "Loaded configuration " + config);
          return config;
      }
docs: Create a plugin config object from JSON format.
  @param inputStream the stream containing the JSON file.
  @return the config object