int nmessages = 0;
if (istream instanceof FileInputStream) {
reader = new NIOFIXFileReader(messageCache, (FileInputStream) istream);
} else {
reader = new FIXInputStreamReader(messageCache, istream);
}
if (HermesBrowser.getBrowser().getConfig().getQuickFIX().isFilterSessionMsgTypes()) {
reader.getFilter().add(FIXMessageFilter.SESSION_MSGTYPES);
}