configurationSetInstance.setTimeZone(timeZoneInstance);
}
Element domainJoinElement = XmlUtility.getElementByTagNameNS(configurationSetsElement, "http://schemas.microsoft.com/windowsazure", "DomainJoin");
if (domainJoinElement != null) {
DomainJoinSettings domainJoinInstance = new DomainJoinSettings();
configurationSetInstance.setDomainJoin(domainJoinInstance);
Element credentialsElement = XmlUtility.getElementByTagNameNS(domainJoinElement, "http://schemas.microsoft.com/windowsazure", "Credentials");
if (credentialsElement != null) {
DomainJoinCredentials credentialsInstance = new DomainJoinCredentials();
domainJoinInstance.setCredentials(credentialsInstance);
Element domainElement = XmlUtility.getElementByTagNameNS(credentialsElement, "http://schemas.microsoft.com/windowsazure", "Domain");
if (domainElement != null) {
String domainInstance;
domainInstance = domainElement.getTextContent();
credentialsInstance.setDomain(domainInstance);
}
Element usernameElement = XmlUtility.getElementByTagNameNS(credentialsElement, "http://schemas.microsoft.com/windowsazure", "Username");
if (usernameElement != null) {
String usernameInstance;
usernameInstance = usernameElement.getTextContent();
credentialsInstance.setUserName(usernameInstance);
}
Element passwordElement = XmlUtility.getElementByTagNameNS(credentialsElement, "http://schemas.microsoft.com/windowsazure", "Password");
if (passwordElement != null) {
String passwordInstance;
passwordInstance = passwordElement.getTextContent();
credentialsInstance.setPassword(passwordInstance);
}
}
Element joinDomainElement = XmlUtility.getElementByTagNameNS(domainJoinElement, "http://schemas.microsoft.com/windowsazure", "JoinDomain");
if (joinDomainElement != null) {
String joinDomainInstance;
joinDomainInstance = joinDomainElement.getTextContent();
domainJoinInstance.setDomainToJoin(joinDomainInstance);
}
Element machineObjectOUElement = XmlUtility.getElementByTagNameNS(domainJoinElement, "http://schemas.microsoft.com/windowsazure", "MachineObjectOU");
if (machineObjectOUElement != null) {
String machineObjectOUInstance;
machineObjectOUInstance = machineObjectOUElement.getTextContent();
domainJoinInstance.setLdapMachineObjectOU(machineObjectOUInstance);
}
Element provisioningElement = XmlUtility.getElementByTagNameNS(domainJoinElement, "http://schemas.microsoft.com/windowsazure", "Provisioning");
if (provisioningElement != null) {
DomainJoinProvisioning provisioningInstance = new DomainJoinProvisioning();
domainJoinInstance.setProvisioning(provisioningInstance);
Element accountDataElement = XmlUtility.getElementByTagNameNS(provisioningElement, "http://schemas.microsoft.com/windowsazure", "AccountData");
if (accountDataElement != null) {
String accountDataInstance;
accountDataInstance = accountDataElement.getTextContent();