public static DurableClientInfoResponse create(DistributionManager dm,
      InternalDistributedMember recipient, DurableClientInfoRequest request) {
    DurableClientInfoResponse m = new DurableClientInfoResponse();
    m.setRecipient(recipient);
    try {
      InternalCache c = (InternalCache) CacheFactory.getInstanceCloseOk(dm.getSystem());
      if (!c.getCacheServers().isEmpty()) {

        CacheServerImpl server = (CacheServerImpl) c.getCacheServers().iterator().next();
        switch (request.action) {
          case DurableClientInfoRequest.HAS_DURABLE_CLIENT_REQUEST: {
            m.returnVal =
                server.getAcceptor().getCacheClientNotifier().hasDurableClient(request.durableId);
            break;
          }
          case DurableClientInfoRequest.IS_PRIMARY_FOR_DURABLE_CLIENT_REQUEST: {
            m.returnVal = server.getAcceptor().getCacheClientNotifier()
                .hasPrimaryForDurableClient(request.durableId);
            break;
          }
        }
      }
    } catch (CacheClosedException ignore) {
      // do nothing
    }
    return m;
  }
Returns a {@code DurableClientInfoResponse} that will be returned to the specified recipient.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/DurableClientInfoResponse.java