final String queryString = "project:" + project + " is:open";
List<JSONObject> changeList = new ArrayList<JSONObject>();
try {
IGerritHudsonTriggerConfig config = getConfig();
GerritQueryHandler handler = new GerritQueryHandler(config);
changeList = handler.queryJava(queryString, false, true, false);
} catch (GerritQueryException gqe) {
logger.debug("Bad query. ", gqe);
} catch (Exception ex) {
logger.warn("Could not query Gerrit for [" + queryString + "]", ex);
}