@Override
  public boolean isPrimaryForDurableClient(String durableClientId) {
    RemoteApplicationVM vm = (RemoteApplicationVM) getGemFireVM();
    boolean isPrimary = false;
    if (vm != null) {
      isPrimary = vm.isPrimaryForDurableClient(durableClientId);
    }
    return isPrimary;
  }
Find whether this server is primary for given client (durableClientId)

@param durableClientId - durable-id of the client
@return true if the server is primary for given client

@since GemFire 5.6
geode-core/src/main/java/org/apache/geode/admin/internal/CacheServerImpl.java