private ActivityEvent createActivityEvent() {
        final String eventName = getPanel().getProcess().getNameGenerator().nextEventName();
        if (this.eventType == StateType.MESSAGE_ACTIVITY_EVENT) {
            return new MessageActivityEvent(eventName);
        }
        if (this.eventType == StateType.TIMER_ACTIVITY_EVENT) {
            return new TimerActivityEvent(eventName);
        }
        if (this.eventType == StateType.CONDITIONAL_ACTIVITY_EVENT) {
            return new ConditionalActivityEvent(eventName);
        }
        if (this.eventType == StateType.SIGNAL_ACTIVITY_EVENT) {
            return new SignalActivityEvent(eventName);
        }
        if (this.eventType == StateType.ERROR_ACTIVITY_EVENT) {
            return new ErrorActivityEvent(eventName);
        }
        return null;
    }