}
private void loadIndexes(LogFormat format) {
models = new ArrayList<LineIndex>();
LineIndex li = format.getLineIndex(buffer);
models.add(li);
if (format.supportsEvents()) {
eventList = format.getEventList(li);
li.addLineListener(eventList);
}
// TODO move filtering to config and allow choices
Filter filter = new PriorityFilter();
LineIndex filteredIndex = new FilteredLineIndex(li, filter);
models.add(filteredIndex);
if (format.supportsRequests()) {
requestIndex = format.getRequestIndex(li);
}