title: Error with spring session [ Cannot expose session attribute 'user' because of an existing model object of the same name]
body: <p>Hi i am getting following error </p>
  
  <pre><code>javax.servlet.ServletException: Cannot expose session attribute 'user' because of an existing model object of the same name
      org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:141)
      org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
  </code></pre>
  
  <p>Code</p>
  
  <pre><code>@Controller
  @RequestMapping("/admin")
  @SessionAttributes("user")
  public class AdminHome {    
      @RequestMapping("home")
      public String homePage(HttpSession session, ModelMap map) {
          map.addAttribute(org.brahmaa.ads.util.impl.UserInfo.getPrincipal(session));
          return "admin/home";
      }
  }
  </code></pre>