class UmundoETLProtocolAdapter implements ETLProtocolAdapter {

    @Override
    public void sendMMIEvent(final Object ch, final Mmi mmi)
            throws IOException {
        final LifeCycleEvent evt = mmi.getLifeCycleEvent();
        LifeCycleEvents.LifeCycleResponse response =
                createResponse(evt);
        final LifeCycleEvents.LifeCycleEvent.LifeCycleEventType type
            = getEventType(evt);
        final LifeCycleEvents.LifeCycleEvent event =
                LifeCycleEvents.LifeCycleEvent.newBuilder()
                .setType(type)
                .setRequestID(evt.getRequestId())
                .setSource(sourceUrl)
                .setTarget(evt.getTarget())
                .setExtension(LifeCycleEvents.LifeCycleResponse.response,
                        response)
                .build();
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("sending " + evt);
        }
        publisher.sendObject("LifeCycleEvent", event);
    }

    public  UmundoETLProtocolAdapter();

}