@Override
  public R handleResponse(Response response) throws IOException, UnknownManifestFormatException {
    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    DescriptorDigest digest =
        Digests.computeDigest(response.getBody(), byteArrayOutputStream).getDigest();
    String jsonString = byteArrayOutputStream.toString(StandardCharsets.UTF_8.name());
    T manifestTemplate = getManifestTemplateFromJson(jsonString);
    return computeReturn(new ManifestAndDigest<>(manifestTemplate, digest));
  }
Parses the response body into a {@link ManifestAndDigest}.
jib-core/src/main/java/com/google/cloud/tools/jib/registry/AbstractManifestPuller.java