docs: public static void redirectPermanently(CmsJspActionElement jsp, String target) {
  
          target = OpenCms.getLinkManager().substituteLink(jsp.getCmsObject(), target);
          jsp.getResponse().setHeader(HEADER_CONNECTION, "close");
          try {
              HttpServletResponse response = jsp.getResponse();
              if (response instanceof CmsFlexResponse) {
                  ((CmsFlexResponse)jsp.getResponse()).sendRedirect(target, true);
              } else {
                  response.setHeader("Location", target);
                  response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
              }
          } catch (IOException e) {
              LOG.error(Messages.get().getBundle().key(Messages.ERR_IOERROR_0), e);
          }
      }