}
public static void performRedirect(final String targetURL, final int statusCode) {
final BufferedWebResponse response = (BufferedWebResponse) RequestCycle.get().getResponse();
response.getHttpServletResponse().setHeader("Location", targetURL);
throw new AbortWithHttpStatusException(HttpServletResponse.SC_MOVED_PERMANENTLY, true);
}