CB-6143 Use events.emit() instead of require('../../plugman').emit()