public Object[] executeQueriesWithoutDistinct(String[] qarr) {
    QueryService qs = cache.getQueryService();
    Object[] result = new Object[qarr.length];
    String query = null;
    int j = 0;
    for (final String s : qarr) {
      query = queries.get(s);
      if (query.indexOf("distinct") > -1) {
        query = query.replace("distinct", "");
      }
      if (query.indexOf("DISTINCT") > -1) {
        query = query.replace("DISTINCT", "");
      }

      // hydra.getLogWriter().info("\nExecuting query: " + query);
      try {
        result[j++] = qs.newQuery(query).execute();
      } catch (Exception e) {
        throw new RuntimeException(e);
      }
    }
    return result;
  }
Executes queries corresponding to the keys passed using array<br>
<P>
<code>
   String[] arr = {"1", "2", "3"};<br>
   new QueryTestUtils().executeQueries(arr);
   </code>
<p>

@param qarr Array of keys, queries in the values mapped are executed
@return Object array containing SelectResults

@throws Exception if an exception is encountered during query execution
geode-dunit/src/main/java/org/apache/geode/cache/query/QueryTestUtils.java