Corrected context problem in processTrigger method