try {
method = new PollMethod(uri, subscriptionId, timeout);
getClient(sessionInfo).executeMethod(method);
method.checkSuccess();
EventDiscovery disc = method.getResponseAsEventDiscovery();
EventBundle[] events;
if (disc.isEmpty()) {
events = new EventBundle[0];
} else {
Element discEl = disc.toXml(DomUtil.createDocument());
ElementIterator it = DomUtil.getChildren(discEl,
ObservationConstants.XML_EVENTBUNDLE,
ObservationConstants.NAMESPACE);
List<EventBundle> bundles = new ArrayList<EventBundle>();
while (it.hasNext()) {