}
}
Element upgradeStatusElement = XmlUtility.getElementByTagNameNS(deploymentsElement, "http://schemas.microsoft.com/windowsazure", "UpgradeStatus");
if (upgradeStatusElement != null) {
UpgradeStatus upgradeStatusInstance = new UpgradeStatus();
deploymentInstance.setUpgradeStatus(upgradeStatusInstance);
Element upgradeTypeElement = XmlUtility.getElementByTagNameNS(upgradeStatusElement, "http://schemas.microsoft.com/windowsazure", "UpgradeType");
if (upgradeTypeElement != null) {
DeploymentUpgradeType upgradeTypeInstance;
upgradeTypeInstance = DeploymentUpgradeType.valueOf(upgradeTypeElement.getTextContent());
upgradeStatusInstance.setUpgradeType(upgradeTypeInstance);
}
Element currentUpgradeDomainStateElement = XmlUtility.getElementByTagNameNS(upgradeStatusElement, "http://schemas.microsoft.com/windowsazure", "CurrentUpgradeDomainState");
if (currentUpgradeDomainStateElement != null) {
UpgradeDomainState currentUpgradeDomainStateInstance;
currentUpgradeDomainStateInstance = UpgradeDomainState.valueOf(currentUpgradeDomainStateElement.getTextContent());
upgradeStatusInstance.setCurrentUpgradeDomainState(currentUpgradeDomainStateInstance);
}
Element currentUpgradeDomainElement = XmlUtility.getElementByTagNameNS(upgradeStatusElement, "http://schemas.microsoft.com/windowsazure", "CurrentUpgradeDomain");
if (currentUpgradeDomainElement != null) {
int currentUpgradeDomainInstance;
currentUpgradeDomainInstance = DatatypeConverter.parseInt(currentUpgradeDomainElement.getTextContent());
upgradeStatusInstance.setCurrentUpgradeDomain(currentUpgradeDomainInstance);
}
}
Element upgradeDomainCountElement = XmlUtility.getElementByTagNameNS(deploymentsElement, "http://schemas.microsoft.com/windowsazure", "UpgradeDomainCount");
if (upgradeDomainCountElement != null) {