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