@Async
	public void getUpdate(int ticket, String id, DeferredResult<String> result) {
		try {
			while (!result.isSetOrExpired()) {
				synchronized (result) {
					String content = pomDao.getAllNextLines(ticket);
					if (content != null) {
						if (content.contains(END_SYMBOL)) {
							endScan(ticket);
						}
						content = tagService.addTagsToContent(content);
						result.setResult(content);
						return;
					}
				}
				Thread.sleep(TRY_READ_AGAIN_IN);
			}
		} catch (InterruptedException ex) {
			log.log(Level.SEVERE, "an exception was thrown", ex);
		}
	}