try {
postEntity.put(JQL_ATTRIBUTE, jql);
postEntity.put(START_AT_ATTRIBUTE, startAt);
postEntity.put(MAX_RESULTS_ATTRIBUTE, maxResults);
} catch (JSONException e) {
throw new RestClientException(e);
}
return postAndParse(searchUri, postEntity, searchResultJsonParser, progressMonitor);
} else {
final URI uri = UriBuilder.fromUri(searchUri).queryParam(JQL_ATTRIBUTE, jql).queryParam(MAX_RESULTS_ATTRIBUTE, maxResults)
.queryParam(START_AT_ATTRIBUTE, startAt).build();