Path getApplicationLayersCacheDirectory() throws CacheDirectoryCreationException {
    if (applicationLayersCacheDirectory == null) {
      // Create a directory in temp if application layers cache directory is not set.
      try {
        Path tmp = Paths.get(System.getProperty("java.io.tmpdir"));
        applicationLayersCacheDirectory = tmp.resolve(DEFAULT_APPLICATION_CACHE_DIRECTORY_NAME);
        Files.createDirectories(applicationLayersCacheDirectory);
      } catch (IOException ex) {
        throw new CacheDirectoryCreationException(ex);
      }
    }
    return applicationLayersCacheDirectory;
  }
Adds mirrors for a base image registry. Jib will try its mirrors in the given order before
finally trying the registry.

@param registry base image registry for which mirrors are configured
@param mirrors a list of mirrors, where each element is in the form of {@code host[:port]}
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/api/Containerizer.java