@Override
public void execute(Throwable ex) throws Exception {
if (ex instanceof RequiresHttpAction) {
webContext.sendResponse((RequiresHttpAction) ex);
} else {
throw new TechnicalException("Failed to redirect", ex);
}
}
}).then(new Action<Void>() {
@Override
public void execute(Void ignored) throws Exception {