public synchronized static void updateTaskCompleted(String taskID, String recipientID) {

		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);

			for (Task task : allTasks) {
				if (task.getId().equals(taskID)) {
					if (task.getRecipient().getId().equals(recipientID)) {
						task.getRecipient().setDidReply(true);
						FileOutputStream fos = new FileOutputStream(file);
						xstream.toXML(allTasks, fos);
						fos.close();
					}
				}
			}
		} catch (Exception e) {
		}

	}