public void checkItemsAndHandleThem() {
		synchronized (taskList) {
			for (Task task : taskList) {
				if ((task.getDueDate().before(new Date()) || (task.getDueDate().equals(new Date())))
						&& !task.isCompleted() && !task.isTaskExpiredHadBeenNotify()) {

					dataXMLManager.deleteTaskFromXML(task);
					task.handleExpiredTask();
					dataXMLManager.addTask(task);
				}
			}
		}

		synchronized (reminderList) {
			for (Reminder reminder : reminderList) {
				if ((reminder.getDateOfReminding().before(new Date()) || (reminder.getDateOfReminding()
						.equals(new Date()))) && !reminder.isHadBeenSend()) {

					dataXMLManager.deleteReminderFromXML(reminder);
					reminder.sendReminder();
					dataXMLManager.addReminder(reminder);
				}
			}
		}
	}