final InterfaceType interfaceType,
final List<Class> interfaces,
final Class mainInterface) {
switch (beanContext.getComponentType()) {
case STATEFUL:
return new StatefulEjbHomeHandler(beanContext, interfaceType, interfaces, mainInterface);
case STATELESS:
return new StatelessEjbHomeHandler(beanContext, interfaceType, interfaces, mainInterface);
case SINGLETON:
return new SingletonEjbHomeHandler(beanContext, interfaceType, interfaces, mainInterface);
case MANAGED: