private <T> void registerLocalSession(InjectManager beanManager,
Class<T> localApi)
{
AbstractSessionContext<X,T> context = getSessionContext(localApi);
BeanName beanName = new BeanNameLiteral(getEJBName());
SessionRegistrationBean<X,T> regBean
= new SessionRegistrationBean<X,T>(beanManager, context, _bean, beanName);
beanManager.addBeanImpl(regBean, regBean.getAnnotated());