code: @Override
      public View resolveViewName(String viewName, Locale locale) {
          if (viewName == null) {
              throw new IllegalArgumentException("Method argument viewName must not be null.");
          }
  
          if (viewName.startsWith(REDIRECT_URL_PREFIX)) {
              String redirectUrl = viewName.substring(REDIRECT_URL_PREFIX.length());
              return new SlingRedirectView(redirectUrl, true, true);
          }
  
          if (viewName.startsWith(FORWARD_URL_PREFIX)) {
              String forwardUrl = viewName.substring(FORWARD_URL_PREFIX.length());
              return new InternalResourceView(forwardUrl);
          }
  
          return resolveScriptingView(viewName);
      }
docs: Resolves a {@link View} from the provided view name.
  
  @param viewName must not be <code>null</code>.