connectionInstance.setConnectivityState(connectivityStateInstance);
}
Element lastEventElement = XmlUtility.getElementByTagNameNS(connectionsElement, "http://schemas.microsoft.com/windowsazure", "LastEvent");
if (lastEventElement != null) {
GatewayEvent lastEventInstance = new GatewayEvent();
connectionInstance.setLastEvent(lastEventInstance);
Element timestampElement = XmlUtility.getElementByTagNameNS(lastEventElement, "http://schemas.microsoft.com/windowsazure", "Timestamp");
if (timestampElement != null) {
Calendar timestampInstance;
timestampInstance = DatatypeConverter.parseDateTime(timestampElement.getTextContent());
lastEventInstance.setTimestamp(timestampInstance);
}
Element idElement = XmlUtility.getElementByTagNameNS(lastEventElement, "http://schemas.microsoft.com/windowsazure", "Id");
if (idElement != null) {
String idInstance;
idInstance = idElement.getTextContent();
lastEventInstance.setId(idInstance);
}
Element messageElement = XmlUtility.getElementByTagNameNS(lastEventElement, "http://schemas.microsoft.com/windowsazure", "Message");
if (messageElement != null) {
String messageInstance;
messageInstance = messageElement.getTextContent();
lastEventInstance.setMessage(messageInstance);
}
Element dataElement = XmlUtility.getElementByTagNameNS(lastEventElement, "http://schemas.microsoft.com/windowsazure", "Data");
if (dataElement != null) {
String dataInstance;
dataInstance = dataElement.getTextContent();
lastEventInstance.setData(dataInstance);
}
}
Element ingressBytesTransferredElement = XmlUtility.getElementByTagNameNS(connectionsElement, "http://schemas.microsoft.com/windowsazure", "IngressBytesTransferred");
if (ingressBytesTransferredElement != null) {