@SuppressWarnings("unchecked")
	private void logEvent(EventType type, Object value, StateMachine<?, TransitionInput> machine) {
		if (allowedEventTypes == null || allowedEventTypes.contains(type)) {
			observedEvents.add(new Event(type, value, (StateMachine<?,Object>)machine));
		}
	}