code: public void lockAndRegister(RuntimeObject rtObject, int lockMode, List registeredObjects)
      {
          lockAndRegister(rtObject, lockMode, isImplicitLocking(), registeredObjects);
      }
docs: Lock and register the specified object, make sure that when cascading locking and register
  is enabled to specify a List to register the already processed object Identiy.