public String humanReadableString() {
            String deprecationDescription = "deprecated since major version " + majorVersion;
            if (attributes.isEmpty()) {
                return "Element '" + tagName + "' is " + deprecationDescription + ". " + message;
            }
            return "Element '" + tagName + "' contains attribute" + (attributes.size() > 1 ? "s " : " ") +
                   attributes.stream().map(attr -> "'" + attr + "'").collect(joining(", ")) +
                   " " + deprecationDescription + ". " + message;
        }
Returns the major version that deprecated this element
config-model-api/src/main/java/com/yahoo/config/application/api/DeploymentSpec.java