code: public static InjectionPoint wrapIfNecessary(InjectionPoint ip) {
          if (ip.getBean() instanceof SessionBean<?>) {
              if (!CONTEXTUAL_SESSION_BEANS.get().contains(ip.getBean().getBeanClass())) {
                  return new NonContextualSessionBeanInjectionPoint(ip);
              }
          }
          return ip;
      }
docs: Returns the {@link InjectionPoint} passed in as a parameter if this {@link InjectionPoint} belongs to a contextual
  instance of a session bean. Otherwise, the method wraps the {@link InjectionPoint} to guarantee that getBean() always
  returns null.