title: Too Many Redirects in ServicePreAction Hook
body: <p>I am using Liferay Portal 6.0. version. I am creating hooks plugin for redirecting to new community whenever user request. I have overridden run method in ServicePreAction like this:</p>
  
  <pre class="lang-java prettyprint-override"><code>protected void doRun(HttpServletRequest request, HttpServletResponse response)
              throws Exception {
  
      ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute(
            WebKeys.THEME_DISPLAY); 
  
      if(some condition) {
          response.sendRedirect("/web/mycommunity/home");
      }
  } 
  </code></pre>
  
  <p>But i am geting "Too Many Redirects" Error.
  Any solution?</p>