code: protected boolean lockedBy(InternalTransaction internalTransaction)
      {
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.entry(this
                          , cclass
                          , "lockedBy"
                          , internalTransaction
                              );
          if (transactionLock.getLockingTransaction() == internalTransaction)
          {
              if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
                  trace.exit(this
                             , cclass
                             , "lockedBy"
                             , "returns true"
                                  );
              return true;
          } else {
              if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
                  trace.exit(this
                             , cclass
                             , "lockedBy"
                             , "returns false"
                                  );
              return false;
          }
      }
docs: <p>
  Tests to see if this ManagedObject is locked by a given transaction. Not synchronized because whoever calls this
  must be holding a corser lock in order that the result will be useful. <\p>
  
  @param internalTransaction testing the lock.
  @return boolean true if the lock is held by the InternalTransaction.