Element feedElement = XmlUtility.getElementByTagNameNS(responseDoc, "http://www.w3.org/2005/Atom", "feed");
if (feedElement != null) {
if (feedElement != null) {
for (int i1 = 0; i1 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(feedElement, "http://www.w3.org/2005/Atom", "entry").size(); i1 = i1 + 1) {
org.w3c.dom.Element entriesElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(feedElement, "http://www.w3.org/2005/Atom", "entry").get(i1));
NamespaceDescription entryInstance = new NamespaceDescription();
result.getNamespaceDescriptions().add(entryInstance);
Element contentElement = XmlUtility.getElementByTagNameNS(entriesElement, "http://www.w3.org/2005/Atom", "content");
if (contentElement != null) {
Element connectionDetailElement = XmlUtility.getElementByTagNameNS(contentElement, "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect", "ConnectionDetail");
if (connectionDetailElement != null) {
Element keyNameElement = XmlUtility.getElementByTagNameNS(connectionDetailElement, "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect", "KeyName");
if (keyNameElement != null) {
String keyNameInstance;
keyNameInstance = keyNameElement.getTextContent();
entryInstance.setKeyName(keyNameInstance);
}
Element connectionStringElement = XmlUtility.getElementByTagNameNS(connectionDetailElement, "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect", "ConnectionString");
if (connectionStringElement != null) {
String connectionStringInstance;
connectionStringInstance = connectionStringElement.getTextContent();
entryInstance.setConnectionString(connectionStringInstance);
}
Element authorizationTypeElement = XmlUtility.getElementByTagNameNS(connectionDetailElement, "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect", "AuthorizationType");
if (authorizationTypeElement != null) {
String authorizationTypeInstance;
authorizationTypeInstance = authorizationTypeElement.getTextContent();
entryInstance.setAuthorizationType(authorizationTypeInstance);
}
Element rightsSequenceElement = XmlUtility.getElementByTagNameNS(connectionDetailElement, "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect", "Rights");
if (rightsSequenceElement != null) {
for (int i2 = 0; i2 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(rightsSequenceElement, "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect", "AccessRights").size(); i2 = i2 + 1) {
org.w3c.dom.Element rightsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(rightsSequenceElement, "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect", "AccessRights").get(i2));
entryInstance.getRights().add(AccessRight.valueOf(rightsElement.getTextContent()));
}
}
Element secondaryConnectionStringElement = XmlUtility.getElementByTagNameNS(connectionDetailElement, "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect", "SecondaryConnectionString");
if (secondaryConnectionStringElement != null) {
String secondaryConnectionStringInstance;
secondaryConnectionStringInstance = secondaryConnectionStringElement.getTextContent();
entryInstance.setSecondaryConnectionString(secondaryConnectionStringInstance);
}
}
}
}
}