public static FetchDistLockInfoResponse create(DistributionManager dm,
      InternalDistributedMember recipient) {
    FetchDistLockInfoResponse m = new FetchDistLockInfoResponse();
    InternalDistributedMember id = dm.getDistributionManagerId();
    Set entries = DLockService.snapshotAllServices().entrySet();
    List infos = new ArrayList();
    for (final Object o : entries) {
      Map.Entry entry = (Map.Entry) o;
      String serviceName = entry.getKey().toString();
      DLockService service = (DLockService) entry.getValue();
      Set serviceEntries = service.snapshotService().entrySet();
      for (final Object serviceEntry : serviceEntries) {
        Map.Entry token = (Map.Entry) serviceEntry;
        infos.add(new RemoteDLockInfo(serviceName, token.getKey().toString(),
            (DLockToken) token.getValue(), id));
      }
    }
    m.lockInfos = (DLockInfo[]) infos.toArray(new DLockInfo[0]);
    m.setRecipient(recipient);
    return m;
  }
Returns a <code>FetchDistLockInfoResponse</code> that will be returned to the specified
recipient. The message will contains a copy of the local manager's distributed lock service
information.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/FetchDistLockInfoResponse.java