final GetQuery getQuery = new GetQuery(HOSTNAME, PORT, PATH, SECURE);
getQuery.getParameters().put("a", "b");
getQuery.setSerializer(new BinarySerializer());
getQuery.getRequestHeaders().add("bar", "hello");
getQuery.getRequestHeaders().add("bar", "world");
authentication.authenticate(getQuery);
getQuery.execute(new TaskListener<Object>() {
@SuppressWarnings("unchecked")
public void taskExecuted(Task<Object> task) {
GetQuery getQuery = (GetQuery)task;