public static DeploymentSpec fromXml(String xmlForm) {
        return fromXml(xmlForm, true);
    }
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