docs: public boolean lock(EJSDeployedSupport methodContext, ContainerTx tx) {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "lock(" + tx + ", thread=" + Thread.currentThread().getId() +
                           ") : " + this + ", " + currentTx + ", activeOnThread=" +
                           ((ivActiveOnThread == null) ? "null" : ivActiveOnThread.getId()));
  
          // If the bean is eligible to be locked for use by the current thread,
          // and current transaction, then lock it now.                F743-22462.CR
          if (eligibleForLock(methodContext, tx)) // d704504
          {
              // lock the bean for use on the current thread.           F743-22462.CR
              ivActiveOnThread = Thread.currentThread();
  
              if (isTraceOn && tc.isEntryEnabled())
                  Tr.exit(tc, "lock : true");
              return true;
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "lock : false");
          return false;
      }