Element inputEndpointsSequenceElement = XmlUtility.getElementByTagNameNS(configurationSetsElement, "http://schemas.microsoft.com/windowsazure", "InputEndpoints");
if (inputEndpointsSequenceElement != null) {
for (int i12 = 0; i12 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(inputEndpointsSequenceElement, "http://schemas.microsoft.com/windowsazure", "InputEndpoint").size(); i12 = i12 + 1) {
org.w3c.dom.Element inputEndpointsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(inputEndpointsSequenceElement, "http://schemas.microsoft.com/windowsazure", "InputEndpoint").get(i12));
InputEndpoint inputEndpointInstance = new InputEndpoint();
configurationSetInstance.getInputEndpoints().add(inputEndpointInstance);
Element loadBalancedEndpointSetNameElement = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "LoadBalancedEndpointSetName");
if (loadBalancedEndpointSetNameElement != null) {
String loadBalancedEndpointSetNameInstance;
loadBalancedEndpointSetNameInstance = loadBalancedEndpointSetNameElement.getTextContent();
inputEndpointInstance.setLoadBalancedEndpointSetName(loadBalancedEndpointSetNameInstance);
}
Element localPortElement2 = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "LocalPort");
if (localPortElement2 != null && (localPortElement2.getTextContent() == null || localPortElement2.getTextContent().isEmpty() == true) == false) {
int localPortInstance2;
localPortInstance2 = DatatypeConverter.parseInt(localPortElement2.getTextContent());
inputEndpointInstance.setLocalPort(localPortInstance2);
}
Element nameElement6 = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "Name");
if (nameElement6 != null) {
String nameInstance6;
nameInstance6 = nameElement6.getTextContent();
inputEndpointInstance.setName(nameInstance6);
}
Element portElement = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "Port");
if (portElement != null && (portElement.getTextContent() == null || portElement.getTextContent().isEmpty() == true) == false) {
int portInstance;
portInstance = DatatypeConverter.parseInt(portElement.getTextContent());
inputEndpointInstance.setPort(portInstance);
}
Element loadBalancerProbeElement = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "LoadBalancerProbe");
if (loadBalancerProbeElement != null) {
LoadBalancerProbe loadBalancerProbeInstance = new LoadBalancerProbe();
inputEndpointInstance.setLoadBalancerProbe(loadBalancerProbeInstance);
Element pathElement = XmlUtility.getElementByTagNameNS(loadBalancerProbeElement, "http://schemas.microsoft.com/windowsazure", "Path");
if (pathElement != null) {
String pathInstance;
pathInstance = pathElement.getTextContent();
loadBalancerProbeInstance.setPath(pathInstance);
}
Element portElement2 = XmlUtility.getElementByTagNameNS(loadBalancerProbeElement, "http://schemas.microsoft.com/windowsazure", "Port");
if (portElement2 != null) {
int portInstance2;
portInstance2 = DatatypeConverter.parseInt(portElement2.getTextContent());
loadBalancerProbeInstance.setPort(portInstance2);
}
Element protocolElement2 = XmlUtility.getElementByTagNameNS(loadBalancerProbeElement, "http://schemas.microsoft.com/windowsazure", "Protocol");
if (protocolElement2 != null) {
LoadBalancerProbeTransportProtocol protocolInstance2;
protocolInstance2 = com.microsoft.windowsazure.management.compute.ComputeManagementClientImpl.parseLoadBalancerProbeTransportProtocol(protocolElement2.getTextContent());
loadBalancerProbeInstance.setProtocol(protocolInstance2);
}
Element intervalInSecondsElement = XmlUtility.getElementByTagNameNS(loadBalancerProbeElement, "http://schemas.microsoft.com/windowsazure", "IntervalInSeconds");
if (intervalInSecondsElement != null && (intervalInSecondsElement.getTextContent() == null || intervalInSecondsElement.getTextContent().isEmpty() == true) == false) {
int intervalInSecondsInstance;
intervalInSecondsInstance = DatatypeConverter.parseInt(intervalInSecondsElement.getTextContent());
loadBalancerProbeInstance.setIntervalInSeconds(intervalInSecondsInstance);
}
Element timeoutInSecondsElement = XmlUtility.getElementByTagNameNS(loadBalancerProbeElement, "http://schemas.microsoft.com/windowsazure", "TimeoutInSeconds");
if (timeoutInSecondsElement != null && (timeoutInSecondsElement.getTextContent() == null || timeoutInSecondsElement.getTextContent().isEmpty() == true) == false) {
int timeoutInSecondsInstance;
timeoutInSecondsInstance = DatatypeConverter.parseInt(timeoutInSecondsElement.getTextContent());
loadBalancerProbeInstance.setTimeoutInSeconds(timeoutInSecondsInstance);
}
}
Element protocolElement3 = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "Protocol");
if (protocolElement3 != null) {
String protocolInstance3;
protocolInstance3 = protocolElement3.getTextContent();
inputEndpointInstance.setProtocol(protocolInstance3);
}
Element vipElement2 = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "Vip");
if (vipElement2 != null) {
InetAddress vipInstance2;
vipInstance2 = InetAddress.getByName(vipElement2.getTextContent());
inputEndpointInstance.setVirtualIPAddress(vipInstance2);
}
Element enableDirectServerReturnElement = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "EnableDirectServerReturn");
if (enableDirectServerReturnElement != null && (enableDirectServerReturnElement.getTextContent() == null || enableDirectServerReturnElement.getTextContent().isEmpty() == true) == false) {
boolean enableDirectServerReturnInstance;
enableDirectServerReturnInstance = DatatypeConverter.parseBoolean(enableDirectServerReturnElement.getTextContent().toLowerCase());
inputEndpointInstance.setEnableDirectServerReturn(enableDirectServerReturnInstance);
}
Element loadBalancerNameElement = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "LoadBalancerName");
if (loadBalancerNameElement != null) {
String loadBalancerNameInstance;
loadBalancerNameInstance = loadBalancerNameElement.getTextContent();
inputEndpointInstance.setLoadBalancerName(loadBalancerNameInstance);
}
Element endpointAclElement = XmlUtility.getElementByTagNameNS(inputEndpointsElement, "http://schemas.microsoft.com/windowsazure", "EndpointAcl");
if (endpointAclElement != null) {
EndpointAcl endpointAclInstance = new EndpointAcl();
inputEndpointInstance.setEndpointAcl(endpointAclInstance);
Element rulesSequenceElement = XmlUtility.getElementByTagNameNS(endpointAclElement, "http://schemas.microsoft.com/windowsazure", "Rules");
if (rulesSequenceElement != null) {
for (int i13 = 0; i13 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(rulesSequenceElement, "http://schemas.microsoft.com/windowsazure", "Rule").size(); i13 = i13 + 1) {
org.w3c.dom.Element rulesElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(rulesSequenceElement, "http://schemas.microsoft.com/windowsazure", "Rule").get(i13));