XMLBuilder createHostedService = XMLBuilder.create("CreateHostedService")
.a("xmlns", "http://schemas.microsoft.com/windowsazure").e("ServiceName").t(serviceName).up()
.e("Label").t(label).up();
if (options.getDescription().isPresent())
createHostedService.e("Description").t(options.getDescription().get()).up();
if (location.isPresent())
createHostedService.e("Location").t(location.get()).up();
else if (affinityGroup.isPresent())
createHostedService.e("AffinityGroup").t(affinityGroup.get()).up();