private static String getDefaultBaseImage(ArtifactProcessor processor) {
    if (processor.getJavaVersion() <= 8) {
      return "eclipse-temurin:8-jre";
    }
    if (processor.getJavaVersion() <= 11) {
      return "eclipse-temurin:11-jre";
    }
    if (processor.getJavaVersion() <= 17) {
      return "eclipse-temurin:17-jre";
    }
    return "eclipse-temurin:21-jre";
  }
Generates a {@link JibContainerBuilder} from contents of a jar file.

@param processor jar processor
@param jarOptions jar cli options
@param commonCliOptions common cli options
@param commonContainerConfigCliOptions common command line options shared between jar and war
    command
@param logger console logger
@return JibContainerBuilder
@throws IOException if I/O error occurs when opening the jar file or if temporary directory
    provided doesn't exist
@throws InvalidImageReferenceException if the base image reference is invalid
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/jar/JarFiles.java