private static AllTaskListsModel getTasks(final Client client) {
client.register(JacksonFeature.class);
final WebTarget baseTarget = client.target(GOOGLE_TASKS_BASE_URI);
final Response response = baseTarget.path("users/@me/lists").request().get();
final TaskRootBean taskRootBean = response.readEntity(TaskRootBean.class);
final List<TaskListModel> listOfTaskLists = new ArrayList<TaskListModel>();
for (final TaskListBean taskListBean : taskRootBean.getItems()) {
final List<TaskModel> taskList = new ArrayList<TaskModel>();
final WebTarget listTarget = baseTarget.path("lists/{tasklist}/tasks")
.resolveTemplate("tasklist", taskListBean.getId());
final TaskListBean fullTaskListBean = listTarget.request().get(TaskListBean.class);