public static Task[] getTasksByUserMail(String userMail) {

		XStream xstream = new XStream(new DomDriver());

		Task[] allTasks = new Task[0];

		try {
			File file = new File((String) Server.prop.get("taskFilePath"));
			allTasks = (Task[]) xstream.fromXML(file);
		} catch (Exception e) {
		}

		List<Task> retList = new ArrayList<Task>();

		for (Task task : allTasks) {
			if (task.getCreator().equals(userMail)) {
				retList.add(task);
			}
		}

		return retList.toArray(new Task[0]);
	}