// otherwise redirect
final String redirect = combine(httpServletRequest.getContextPath(), redirectTo);
System.out.println("redirectToDocsFilter: redirecting to: " + redirect);
LOG.info("redirectToDocsFilter: redirecting to: " + redirect);
httpServletResponse.sendRedirect(redirect);
}
private static String combine(final String str1, final String str2) {
final StringBuilder buf = new StringBuilder(str1);
if (!str2.startsWith("/")) {