public void addManifest(BlobDescriptor descriptor, String imageReferenceName) {
    ManifestDescriptorTemplate contentDescriptorTemplate =
        new ManifestDescriptorTemplate(
            OciManifestTemplate.MANIFEST_MEDIA_TYPE, descriptor.getSize(), descriptor.getDigest());
    contentDescriptorTemplate.setAnnotations(
        ImmutableMap.of("org.opencontainers.image.ref.name", imageReferenceName));
    manifests.add(contentDescriptorTemplate);
  }
Adds a manifest reference with the given {@link BlobDescriptor}.

@param descriptor the manifest blob descriptor
@param imageReferenceName the image reference name
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/OciIndexTemplate.java