public static void writeConfig(final Config config, final Path path) throws IOException {
        final ObjectMapper mapper = YamlUtil.getVanillaObjectMapper();
        mapper.writeValue(path.toFile(), config);
    }
Reads a YAML string that has already been through the drop wizard env var substitution.
stroom-config/stroom-config-app/src/main/java/stroom/config/app/StroomYamlUtil.java