String beanManagerId = (String)refAddr.getContent();
if (Container.available())
{
Container container = Container.instance();
for (Map.Entry<BeanDeploymentArchive, BeanManagerImpl> mapElement : container.beanDeploymentArchives().entrySet())
{
if (mapElement.getKey().getId().equals(beanManagerId))
{
return mapElement.getValue().getCurrent();
}