try {
FIXMessage message;
while (isRunning() && (message = reader.read()) != null) {
nmessages++;
SessionKey key1 = new SessionKey(message.getMessage().getHeader().getString(SenderCompID.FIELD), message.getMessage().getHeader().getString(TargetCompID.FIELD));
SessionKey key2 = new SessionKey(message.getMessage().getHeader().getString(TargetCompID.FIELD), message.getMessage().getHeader().getString(SenderCompID.FIELD));
FIXSessionBrowserDocumentComponent document = documents.get(key1);
if (document == null) {
document = new FIXSessionBrowserDocumentComponent(messageCache, key1);