private void logSources(EventHandlers eventHandlers) {
    // Logs the different source files used.
    eventHandlers.dispatch(LogEvent.info("Containerizing application with the following files:"));

    for (FileEntriesLayer layer : layerConfigurations) {
      if (layer.getEntries().isEmpty()) {
        continue;
      }

      eventHandlers.dispatch(LogEvent.info("\t" + capitalizeFirstLetter(layer.getName()) + ":"));

      for (FileEntry entry : layer.getEntries()) {
        eventHandlers.dispatch(LogEvent.info("\t\t" + entry.getSourceFile()));
      }
    }
  }
Builds a {@link BuildContext} using this and a {@link Containerizer}.

@param containerizer the {@link Containerizer}
@return the {@link BuildContext}
@throws CacheDirectoryCreationException if a cache directory could not be created
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java