int top = events.size();
if(top > 0) {
Map<String, Resource> resources = buildResourceMap(events);
tuples = new ResourceEvent[top];
for(int idx = 0; idx < top; ++idx) {
Event event = events.get(idx);
Resource resource = resources.get(getResourceKey(
event.getCertname(), event.getResourceTitle(), event.getResourceType()));
tuples[idx] = new ResourceEvent(this, event, resource, getResourceEventImage());
}
}
}
synchronized(this) {