code: public Object EjbPreInvokeForManagedBean(EJSWrapperBase wrapper,
                                               int methodId,
                                               EJSDeployedSupport s,
                                               BeanO beanO,
                                               Object[] args) {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
  
          // Get the EJBMethodInfoImpl object for the methodId
          // assigned to this method by JITDeploy/EJBbdeploy tool.
          EJBMethodInfoImpl methodInfo = mapMethodInfo(s, wrapper, methodId, null);
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "EjbPreInvokeForManagedBean(" + methodId + ":" +
                           methodInfo.getMethodName() + ")");
  
          s.methodInfo = methodInfo;
          s.ivEJBMethodArguments = args;
          s.beanO = beanO;
          s.unpinOnPostInvoke = false;
  
          Object bean = beanO.getBeanInstance();
  
          if (isTraceOn && tc.isEntryEnabled()) {
              Tr.exit(tc, "EjbPreInvokeForManagedBean(" + methodId +
                          ":" + methodInfo.getMethodName() + ") " +
                          " Invoking method '" + methodInfo.getMethodName() +
                          "' on bean " + Util.identity(bean));
          }
  
          return bean;
      }
docs: F743-34301.1