added method canProcessEvent()