public static void writeConfig(final Config config, final OutputStream outputStream) throws IOException {
        final ObjectMapper mapper = YamlUtil.getVanillaObjectMapper();
        // wrap the AppConfig so that it sits at the right level
        mapper.writeValue(outputStream, 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