code: public static HttpSession getHttpSession()
  	{
  		final HttpServletRequest request = WicketComponentExtensions.getHttpServletRequest();
  		if (request != null)
  		{
  			final HttpSession session = request.getSession(false);
  			if (session != null)
  			{
  				return session;
  			}
  		}
  		return null;
  	}
docs: Gets the current http session.
  
  @return the current http session.