}
}
Element extensionConfigurationElement = XmlUtility.getElementByTagNameNS(deploymentElement, "http://schemas.microsoft.com/windowsazure", "ExtensionConfiguration");
if (extensionConfigurationElement != null) {
ExtensionConfiguration extensionConfigurationInstance = new ExtensionConfiguration();
result.setExtensionConfiguration(extensionConfigurationInstance);
Element allRolesSequenceElement = XmlUtility.getElementByTagNameNS(extensionConfigurationElement, "http://schemas.microsoft.com/windowsazure", "AllRoles");
if (allRolesSequenceElement != null) {
for (int i26 = 0; i26 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(allRolesSequenceElement, "http://schemas.microsoft.com/windowsazure", "Extension").size(); i26 = i26 + 1) {
org.w3c.dom.Element allRolesElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(allRolesSequenceElement, "http://schemas.microsoft.com/windowsazure", "Extension").get(i26));
ExtensionConfiguration.Extension extensionInstance = new ExtensionConfiguration.Extension();
extensionConfigurationInstance.getAllRoles().add(extensionInstance);
Element idElement = XmlUtility.getElementByTagNameNS(allRolesElement, "http://schemas.microsoft.com/windowsazure", "Id");
if (idElement != null) {
String idInstance;
idInstance = idElement.getTextContent();
extensionInstance.setId(idInstance);
}
}
}
Element namedRolesSequenceElement = XmlUtility.getElementByTagNameNS(extensionConfigurationElement, "http://schemas.microsoft.com/windowsazure", "NamedRoles");
if (namedRolesSequenceElement != null) {
for (int i27 = 0; i27 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(namedRolesSequenceElement, "http://schemas.microsoft.com/windowsazure", "Role").size(); i27 = i27 + 1) {
org.w3c.dom.Element namedRolesElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(namedRolesSequenceElement, "http://schemas.microsoft.com/windowsazure", "Role").get(i27));
ExtensionConfiguration.NamedRole roleInstance2 = new ExtensionConfiguration.NamedRole();
extensionConfigurationInstance.getNamedRoles().add(roleInstance2);
Element roleNameElement3 = XmlUtility.getElementByTagNameNS(namedRolesElement, "http://schemas.microsoft.com/windowsazure", "RoleName");
if (roleNameElement3 != null) {
String roleNameInstance3;
roleNameInstance3 = roleNameElement3.getTextContent();