roleInstance.setLabel(labelInstance2);
}
Element oSVirtualHardDiskElement = XmlUtility.getElementByTagNameNS(roleListElement, "http://schemas.microsoft.com/windowsazure", "OSVirtualHardDisk");
if (oSVirtualHardDiskElement != null) {
OSVirtualHardDisk oSVirtualHardDiskInstance = new OSVirtualHardDisk();
roleInstance.setOSVirtualHardDisk(oSVirtualHardDiskInstance);
Element hostCachingElement2 = XmlUtility.getElementByTagNameNS(oSVirtualHardDiskElement, "http://schemas.microsoft.com/windowsazure", "HostCaching");
if (hostCachingElement2 != null) {
String hostCachingInstance2;
hostCachingInstance2 = hostCachingElement2.getTextContent();
oSVirtualHardDiskInstance.setHostCaching(hostCachingInstance2);
}
Element diskLabelElement2 = XmlUtility.getElementByTagNameNS(oSVirtualHardDiskElement, "http://schemas.microsoft.com/windowsazure", "DiskLabel");
if (diskLabelElement2 != null) {
String diskLabelInstance2;
diskLabelInstance2 = diskLabelElement2.getTextContent();
oSVirtualHardDiskInstance.setLabel(diskLabelInstance2);
}
Element diskNameElement2 = XmlUtility.getElementByTagNameNS(oSVirtualHardDiskElement, "http://schemas.microsoft.com/windowsazure", "DiskName");
if (diskNameElement2 != null) {
String diskNameInstance2;
diskNameInstance2 = diskNameElement2.getTextContent();
oSVirtualHardDiskInstance.setName(diskNameInstance2);
}
Element mediaLinkElement2 = XmlUtility.getElementByTagNameNS(oSVirtualHardDiskElement, "http://schemas.microsoft.com/windowsazure", "MediaLink");
if (mediaLinkElement2 != null) {
URI mediaLinkInstance2;
mediaLinkInstance2 = new URI(mediaLinkElement2.getTextContent());
oSVirtualHardDiskInstance.setMediaLink(mediaLinkInstance2);
}
Element sourceImageNameElement = XmlUtility.getElementByTagNameNS(oSVirtualHardDiskElement, "http://schemas.microsoft.com/windowsazure", "SourceImageName");
if (sourceImageNameElement != null) {
String sourceImageNameInstance;
sourceImageNameInstance = sourceImageNameElement.getTextContent();
oSVirtualHardDiskInstance.setSourceImageName(sourceImageNameInstance);
}
Element osElement = XmlUtility.getElementByTagNameNS(oSVirtualHardDiskElement, "http://schemas.microsoft.com/windowsazure", "OS");
if (osElement != null) {
String osInstance;
osInstance = osElement.getTextContent();
oSVirtualHardDiskInstance.setOperatingSystem(osInstance);
}
}
Element roleSizeElement = XmlUtility.getElementByTagNameNS(roleListElement, "http://schemas.microsoft.com/windowsazure", "RoleSize");
if (roleSizeElement != null) {