public CacheClientProxy getCacheClientProxy(ClientProxyMembershipID clientProxyId,
      CacheClientNotifier ccn) throws CqException {
    CacheClientProxy proxy = ccn.getClientProxy(clientProxyId, true);
    if (proxy == null) {
      throw new CqException("No Cache Client Proxy found while executing CQ.");
    }
    return proxy;
  }
Executes the given CqQuery, if the CqQuery for that name is not there it registers the one and
executes. This is called on the Server.

@param manageEmptyRegions whether to update the 6.1 emptyRegions map held in the CCN
@param regionDataPolicy the data policy of the region associated with the query. This is only
       needed if manageEmptyRegions is true.
@param emptyRegionsMap map of empty regions.
@throws IllegalStateException if this is called at client side.
geode-cq/src/main/java/org/apache/geode/cache/query/cq/internal/CqServiceImpl.java