for (final Model<?> m : models) {
simulator.register(m);
}
eventCreatorMap = newHashMap();
final TimedEventHandler handler = new TimedEventHandler() {
@SuppressWarnings("unchecked")
@Override
public boolean handleTimedEvent(TimedEvent event) {
if (eventCreatorMap.containsKey(event.getClass())) {
return ((Creator<TimedEvent>) eventCreatorMap.get(event.getClass()))