initStream(response);
eventBus.fireEventFromSource(new ConnectionStatusChangedEvent(ConnectionStatus.connected), this);
}
shouldCollectResponses = true;
for (final XMLPacket packet : response.getChildren()) {
eventBus.fireEventFromSource(new PacketReceivedEvent(packet), this);
}
shouldCollectResponses = false;
continueConnection(response.getAttribute("ack"));
}
}