public String getFoundMainClass() {
      Preconditions.checkState(Type.MAIN_CLASS_FOUND == type);
      Preconditions.checkState(foundMainClasses.size() == 1);
      return foundMainClasses.get(0);
    }
Gets the found main class. Only call if {@link #getType} is {@link Type#MAIN_CLASS_FOUND}.

@return the found main class
jib-core/src/main/java/com/google/cloud/tools/jib/api/MainClassFinder.java