}
runtimeEventSender = context.getRuntimeEventSender();
eventAdapterService = context.getStatementContext().getEventAdapterService();
if (collector != null) {
eventBusCollector = new EventBusCollector() {
public void sendEvent(Object object) throws EPException {
EventBean event = eventAdapterService.adapterForBean(object);
runtimeEventSender.processWrappedEvent(event);
}