}
public void query(Writer out)
throws OrmException, QueryParseException, IOException {
if (imp.isDisabled()) {
throw new QueryParseException("query disabled");
}
if (queries == null || queries.isEmpty()) {
queries = Collections.singletonList("status:open");
} else if (queries.size() > 10) {
// Hard-code a default maximum number of queries to prevent
// users from submitting too much to the server in a single call.
throw new QueryParseException("limit of 10 queries");
}
List<List<ChangeInfo>> res = Lists.newArrayListWithCapacity(queries.size());
for (String query : queries) {
List<ChangeData> changes = imp.queryChanges(query);