code: public TransportsConfiguration getConfiguration(String configFileLocation) {
          TransportsConfiguration transportsConfiguration;
  
          File file = new File(configFileLocation);
          if (file.exists()) {
              try (Reader in = new InputStreamReader(new FileInputStream(file), StandardCharsets.ISO_8859_1)) {
                  Yaml yaml = new Yaml(new CustomClassLoaderConstructor
                          (TransportsConfiguration.class, TransportsConfiguration.class.getClassLoader()));
                  yaml.setBeanAccess(BeanAccess.FIELD);
                  transportsConfiguration = yaml.loadAs(in, TransportsConfiguration.class);
              } catch (IOException e) {
                  throw new RuntimeException(
                          "Error while loading " + configFileLocation + " configuration file", e);
              }
          } else { // return a default config
              LOG.warn("Netty transport configuration file not found in: {} ,hence using default configuration",
                       configFileLocation);
              transportsConfiguration = new TransportsConfiguration();
          }
  
          return transportsConfiguration;
      }
docs: Get the {@code TransportsConfiguration} represented by a particular configuration file.
  
  @param configFileLocation configuration file location
  @return TransportsConfiguration represented by a particular configuration file