public static ApiDefaultsConfig load() throws IOException { URL apiDefaultsUrl = ApiDefaultsConfig.class.getResource("/com/google/api/codegen/packaging/api_defaults.yaml"); String contents = Resources.toString(apiDefaultsUrl, StandardCharsets.UTF_8); return createFromString(contents); } }