GetMethod (String jql, int max) { GetMethod method = new GetMethod(myRepository.getRestUrl("search")); method.setQueryString(new NameValuePair[]{ new NameValuePair("jql", jql), new NameValuePair("maxResults", String.valueOf(max)) }); return method; }