private static void verifyImageNames(List<ImageConfiguration> ret) {
        for (ImageConfiguration config : ret) {
            if (config.getName() == null) {
                throw new IllegalArgumentException("Configuration error: <image> must have a non-null <name>");
            }
        }
    }
Initialize and validate the configuration.


@param images the images to check
@param apiVersion the original API version intended to use
@param nameFormatter formatter for image names
@param log a logger for printing out diagnostic messages
@return the minimal API Docker API required to be used for the given configuration.
src/main/java/io/fabric8/maven/docker/config/ConfigHelper.java