public T fromYAML(InputStream inputStream, Class configType) throws IOException { String content = resolveEnvParams(new InputStreamReader(inputStream)); return yamlMapper.readValue(content, configType); }