`name` might be `null`, use `StringUtils.equals(name, versionType.getKey())`