@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DeploymentSpec other = (DeploymentSpec) o;
        return majorVersion.equals(other.majorVersion) &&
               steps.equals(other.steps) &&
               xmlForm.equals(other.xmlForm);
    }
Creates a deployment spec from XML.

@throws IllegalArgumentException if the XML is invalid
config-model-api/src/main/java/com/yahoo/config/application/api/DeploymentSpec.java