code: @Override
      protected void injectInstance(ManagedObject<?> managedObject, Object instance, InjectionTargetContext injectionContext) throws EJBException {
          // If present, setSessionContext should be called before performing injection
          if (sessionBean != null) {
              try {
                  sessionBean.setSessionContext(this);
              } catch (RemoteException rex) {
                  // RemoteException is only on the signature for backwards compatibility
                  // with EJB 1.0; should throw an EJBException instead.
                  throw ExceptionUtil.EJBException(rex);
              }
          }
          super.injectInstance(managedObject, instance, injectionContext);
      }
docs: StatefulBeanO