private CqQuery[] toArray(Collection<? extends InternalCqQuery> allCqs) {
    CqQuery[] cqs = new CqQuery[allCqs.size()];
    allCqs.toArray(cqs);
    return cqs;
  }
Retrieve all CqQuerys created by this VM.

@return null if there are no cqs.
geode-core/src/main/java/org/apache/geode/cache/query/internal/DefaultQueryService.java