def _emit(self, event, document, *args, **kwargs):
self.handler_registrar().apply(event, document, *args, **kwargs)<EOL>
Inner version of emit which passes the given document as the
primary argument to handler functions.