public static boolean isMaven350OrLater(MavenSession mavenSession) {
        // Maven enforcer and help:evaluate goals both use mavenSession.getSystemProperties(),
        // and it turns out that System.getProperty("maven.version") does not return the value.
        String mavenVersion = mavenSession.getSystemProperties().getProperty("maven.version", "3");
        return greaterOrEqualsVersion(mavenVersion, "3.5.0");
    }
Return the first non null registry given. Use the env var DOCKER_REGISTRY as final fallback
@param checkFirst list of registries to check
@return registry found or null if none.
src/main/java/io/fabric8/maven/docker/util/EnvUtil.java