code: public static CouchbaseQueryResult convertToCouchbaseQueryResult(List<JsonObject> jsonObjects) {
      CouchbaseQueryResult result = null;
      if (jsonObjects != null && jsonObjects.size() > 0) {
        List<Map<String, Object>> list = new ArrayList<Map<String, Object>>(jsonObjects.size());
        for (JsonObject jsonObject : jsonObjects) {
          list.add(jsonObject.toMap());
        }
        result = new CouchbaseQueryResult(list);
      }
      return result;
    }
docs: Converts a {@link JsonObject} list into a {@link CouchbaseQueryResult} so that it can
  be {@link Stream}-ed and returned by the procedures
  
  @param jsonObjects
  the {@link JsonObject} list to convert
  @return the converted list in the form of a CouchbaseQueryResult