code: @Override
      public void lock(Object entity, LockModeType lockMode)
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "em.lock(" + entity + ',' + lockMode + ");\n" + toString());
  
          getEMInvocationInfo(true).lock(entity, lockMode);
      }
docs: (non-Javadoc)
  
  @see javax.persistence.EntityManager#lock(java.lang.Object, javax.persistence.LockModeType)