Change THandler to THandlerListener and attach listeners to processors directly.