Class<T> type = (Class<T>) getClassType();
ResourceArchive ra
= ResourceArchiveManager.findResourceArchive(type.getName());
ResourceAdapterController controller
= new ResourceAdapterController((Bean<ResourceAdapter>) getComponent(), ra);
InjectManager beanManager = InjectManager.create();
BeanBuilder<T> factory = beanManager.createBeanFactory(type);
factory.type(ResourceAdapter.class, type);