@Override
	public String getFinishedResult(String id) {
		File finish = new File(getFilePath(id));
		String content = "";
		if (finish.exists()) {
			Scanner scan = null;
			try {
				scan = new Scanner(finish).useDelimiter("\\Z"); //delimiter na konec souboru
				if (scan.hasNext()) {
					content = scan.next();
					if (!content.contains(DeferredReadService.END_SYMBOL)) {
						return null;
					}
				} else {
					return null;
				}
			} catch (FileNotFoundException ex) {
				log.log(Level.SEVERE, "an exception was thrown", ex);
				return null;
			} finally {
				if (scan != null) {
					scan.close();
				}
			}
		} else {
			return null;
		}
		return content;
	}