public void addPackage(Task task, AddTaskResponseHandler responseHandler) {
List args = new ArrayList(2);
args.add(task);
args.add(null);
Command cmd = new Command(counter.getAndIncrement(),
CommandName.AddTaskRequest,
args);
handler.addResponseHandler(cmd.getId(), responseHandler);
session.write(cmd);
}