code: @SuppressWarnings("unchecked")
      public static <T> T getBean(String name) {
          BeanManager bm = getBeanManager();
          Bean<?> bean = bm.getBeans(name).iterator().next();
          CreationalContext<?> ctx = bm.createCreationalContext(bean);
          return (T) bm.getReference(bean, bean.getBeanClass(), ctx);
      }
docs: Retrieves the instance for a named bean by the given name
  
  @param name The name of the bean to look for
  @return The found bean object if found, otherwise null