@@ -0,0 +1,753 @@
+package org.epnoi.uia.core.eventbus;%0A%0Aimport com.google.common.base.Strings;%0Aimport org.apache.commons.lang.StringUtils;%0Aimport org.epnoi.model.modules.EventBus;%0Aimport org.epnoi.model.parameterization.ParametersModel;%0A%0Aimport java.io.IOException;%0A%0A/**%0A * Created by cbadenes on 14/10/15.%0A */%0Apublic class EventBusFactory %7B%0A%0A%0A%0A    public static EventBus newInstance(ParametersModel parameters)%7B%0A%0A        String uri          = parameters.getEventBus().getUri();%0A        String transport    = Strings.isNullOrEmpty(uri)? %22%22 : StringUtils.substringBefore(uri,%22:%22);%0A%0A        switch (transport.toLowerCase())%7B%0A            case %22amqp%22 :   return new ExternalEventBusImpl(uri);%0A            default:        return new InternalEventBusImpl();%0A        %7D%0A%0A    %7D%0A%7D%0A

handle Internal and External Event Bus implementation