}
@Override
public IRequestTarget decode(final RequestParameters requestParameters) {
if (log.isDebugEnabled()) {
final WebRequest r = (WebRequest) RequestCycle.get().getRequest();
final String ref = r.getHttpServletRequest().getHeader("Referer");
final String requested = r.getURL();
log.debug("redirecting request coming from " + ref + " to " + requested + " to " + _redirectPath);
}
return new RedirectRequestTarget(_redirectPath);
}