private synchronized String generateCqName() {
    while (true) {
      String cqName = CQ_NAME_PREFIX + (cqId++);
      if (!isCqExists(cqName)) {
        return cqName;
      }
    }
  }
Generates a name for CQ. Checks if CQ with that name already exists if so generates a new
cqName.
geode-cq/src/main/java/org/apache/geode/cache/query/cq/internal/CqServiceImpl.java