code: private static Version parseVersion(String version) {
  		String[] parts = version.split("\\.");
  		int nbParts = parts.length;
  		int majorIndex = nbParts > 1 ? 1 : 0;
  		int major = Integer.parseInt(parts[majorIndex]);
  		return new Version(major);
  	}
docs: Parse Java version number.
  
  @param version The version number.
  @return The version.