public static Config readConfig(final Path configFile) throws IOException {

        final ConfigurationSourceProvider configurationSourceProvider = createConfigurationSourceProvider(
                new FileConfigurationSourceProvider(), false);

        final ConfigurationFactory<Config> configurationFactory = configFactorySupplier.getValueWithLocks();

        Config config = null;
        try {
            config = configurationFactory.build(configurationSourceProvider, configFile.toAbsolutePath().toString());
        } catch (ConfigurationException e) {
            throw new RuntimeException(LogUtil.message("Error parsing configuration file {}\n{}",
                    configFile.toAbsolutePath(), e.getMessage()), e);
        }

        return config;
    }
Reads a yaml file that matches the structure of a complete DropWizard {@link Config} object tree.

@throws IOException
stroom-proxy/stroom-proxy-app/src/main/java/stroom/proxy/app/ProxyYamlUtil.java