= _raInstance.select(Names.create(raName));
Bean<?> bean = cdiManager.resolve(cdiManager.getBeans(ResourceAdapter.class,
Names.create(raName)));
CreationalContext<?> env = cdiManager.createCreationalContext(bean);
ResourceAdapter resourceAdapter
= (ResourceAdapter) cdiManager.getReference(bean, ResourceAdapter.class, env);
if (resourceAdapter == null) {
throw new ConfigException(L.l("'{0}' does not have a configured resource-adapter for '{1}'.",