Doesn't the listener get passed the engine instance when it is created? If not, it should.