public void updateTask() {
    if (taskService.taskExists(task.getId())) {
      taskService.mergeTask(task);
      log.info("Task was updated successfully: {}", task.getLabel());

      this.hasTaskEditable = false;
    } else {
      log.error("Cannot update task. It is not in the list: {}", task.getLabel());
    }
  }