Changing order of TapProcessor initialization
The TapProcessor class requires an already initialized Session, so it needs to be constructed after the Session is initialized.