return new SingletonEjbHomeHandler(beanContext, interfaceType, interfaces, mainInterface);
case MANAGED:
return new ManagedHomeHandler(beanContext, interfaceType, interfaces, mainInterface);
case CMP_ENTITY:
case BMP_ENTITY:
return new EntityEjbHomeHandler(beanContext, interfaceType, interfaces, mainInterface);
default: throw new IllegalStateException("Component type does not support rpc interfaces: " + beanContext.getComponentType());
}
}