public @Override void confirm(final String msg) {
		assert (msg != null): "Supplied message is null";
		final String currentToken = this.currentToken.toString();
		String attribs = "";
		String content;
		if (TokenFeed.LOCATOR.equals(msg)) {
			/* hyperlink */
			content = "[[" + currentToken + "]]";
		} else if (TokenFeed.STATEMENT.equals(msg)) {
			/* make hyperlink or anchor (with id attribute) */
			String locator;
			Name origName;
			try {
				final Symbol symbol = module.getSymbolNamespace().getObjectByString(currentToken);
				origName = symbol.getOriginalName();
				final int index = symbol.getParameterIndex();
				locator = module.getParameters().get(index).getLocator();
			} catch (RuntimeException e) {
				locator = null;
				origName = null;
			}
			final String id = msg + currentToken;
			final String currentTokenEscaped = escapeHTML(currentToken);
			if ((locator != null) && (origName != null)) {
				content = "[[" + locator + "#" + msg + escapeHTML(origName.getNameString()) + "|" + currentTokenEscaped + "]]";
			} else if (htmlIds.contains(id)) {
				content = "[[#" + msg + currentTokenEscaped + "|" + currentTokenEscaped + "]]";
			} else {
				attribs = "id=\"" + msg + currentTokenEscaped + "\"";
				htmlIds.add(id);
				content = currentTokenEscaped;
			}
		} else {
			content = escapeHTML(currentToken);
		}
		appendToContext("<span class=\"" + msg + "\" " + attribs + ">" + content + "</span>");
	}