public void writeMetadata(
      ImageReference imageReference,
      BuildableManifestTemplate manifest,
      ContainerConfigurationTemplate containerConfiguration)
      throws IOException {
    List<ManifestAndConfigTemplate> singleton =
        Collections.singletonList(new ManifestAndConfigTemplate(manifest, containerConfiguration));
    cacheStorageWriter.writeMetadata(imageReference, new ImageMetadataTemplate(null, singleton));
  }
Saves a schema 2 manifest for an image reference. This is a simple wrapper around {@link
#writeMetadata(ImageReference, ImageMetadataTemplate)} to save a single manifest without a
manifest list.

@param imageReference the image reference to save the manifest for
@param manifest the V2.2 or OCI manifest
@param containerConfiguration the container configuration
@throws IOException if an I/O exception occurs
jib-core/src/main/java/com/google/cloud/tools/jib/cache/Cache.java