WebSiteGetUsageMetricsResponse.UsageMetric usageInstance = new WebSiteGetUsageMetricsResponse.UsageMetric();
result.getUsageMetrics().add(usageInstance);
Element computeModeElement = XmlUtility.getElementByTagNameNS(usageMetricsElement, "http://schemas.microsoft.com/windowsazure", "ComputeMode");
if (computeModeElement != null) {
WebSiteComputeMode computeModeInstance;
computeModeInstance = WebSiteComputeMode.valueOf(computeModeElement.getTextContent());
usageInstance.setComputeMode(computeModeInstance);
}
Element currentValueElement = XmlUtility.getElementByTagNameNS(usageMetricsElement, "http://schemas.microsoft.com/windowsazure", "CurrentValue");