code: public static YamlConfiguration loadYamlConfiguration(File file) throws DeployerConfigurationException {
          try {
              try (Reader reader = new BufferedReader(new FileReader(file))) {
                  return doLoadYamlConfiguration(reader);
              }
          } catch (Exception e) {
              throw new DeployerConfigurationException("Failed to load YAML configuration at " + file, e);
          }
      }
docs: Loads the specified file as {@link YamlConfiguration}.
  
  @param file the YAML configuration file to load
  @return the YAML configuration
  @throws DeployerConfigurationException if an error occurred