private synchronized boolean isCqExists(String cqName) {
    HashMap<String, CqQueryImpl> cqMap = cqQueryMap;
    return cqMap.containsKey(cqName);
  }
Checks if CQ with the given name already exists.

@param cqName name of the CQ.

@return true if exists else false.
geode-cq/src/main/java/org/apache/geode/cache/query/cq/internal/CqServiceImpl.java