if (parent == null) {
throw new EsiSyntaxError("<esi:replace> tag can only be used inside an <esi:include> tag");
}
String result;
try {
<BUG>result = VariablesResolver.replaceAllVariables(buf.get().toString(), ctx.getHttpRequest());
} catch (ExecutionException e) {</BUG>
if (e.getCause() instanceof HttpErrorPage) {
throw (HttpErrorPage) e.getCause();
}

if (parent == null) {
throw new EsiSyntaxError("<esi:replace> tag can only be used inside an <esi:include> tag");
}
String result;
try {
result = buf.get().toString();
} catch (ExecutionException e) {
if (e.getCause() instanceof HttpErrorPage) {
throw (HttpErrorPage) e.getCause();
}
