public void onTagEnd(String tag, FutureParserContext ctx) throws IOException, HttpErrorPage {
if (active) {
<BUG>String result;</BUG>
try {
<BUG>result = VariablesResolver.replaceAllVariables(buf.get().toString(), ctx.getHttpRequest());
} catch (ExecutionException e) {</BUG>
if (e.getCause() instanceof HttpErrorPage) {
throw (HttpErrorPage) e.getCause();
}
throw new IOException(e);

public void onTagEnd(String tag, FutureParserContext ctx) throws IOException, HttpErrorPage {
if (active) {
try {
super.characters(new CharSequenceFuture(buf.get()));
} catch (ExecutionException e) {
if (e.getCause() instanceof HttpErrorPage) {
throw (HttpErrorPage) e.getCause();
}
throw new IOException(e);
