public DLockBatch[] getLockBatches(InternalDistributedMember owner) {
    // Key: Object batchId, Value: DLockBatch batch
    synchronized (batchLocks) {
      // put owner into the map first so that no new threads will handle in-flight requests
      // from the departed member to lock keys
      recordMemberDepartedTime(owner);

      List batchList = new ArrayList();
      for (DLockBatch batch : batchLocks.values()) {
        if (batch.getOwner().equals(owner)) {
          batchList.add(batch);
        }
      }
      return (DLockBatch[]) batchList.toArray(new DLockBatch[0]);
    }
  }
Returns transaction optimized lock batches that were created by the specified owner.
<p>
Synchronizes on batchLocks.

@param owner member that owned the lock batches to return
@return lock batches that were created by owner
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockGrantor.java