private Task updateTask(Task currentTask, Task taskToUpdated) {
		if (currentTask.getDescription() != null) {
			taskToUpdated.setDescription(currentTask.getDescription());
		}
		if (currentTask.getFromDateTime() != null
				&& currentTask.getToDateTime() != null) {
			taskToUpdated.setFromDateTime(currentTask.getFromDateTime());
			taskToUpdated.setToDateTime(currentTask.getToDateTime());
		}
		if (currentTask.getFromDateTime() != null
				&& currentTask.getToDateTime() == null) {
			taskToUpdated.setFromDateTime(currentTask.getFromDateTime());
			taskToUpdated.setToDateTime(null);
		}
		if (currentTask.getLabels() != null) {
			if (!super.getTask().getLabels().isEmpty()) {
				taskToUpdated.setLabels(currentTask.getLabels());
			}
		}
		Task updatedTask = taskToUpdated;
		return updatedTask;
	}