code: public static SitePreference getCurrentSitePreference(RequestAttributes attributes) {
  		return (SitePreference) attributes.getAttribute(CURRENT_SITE_PREFERENCE_ATTRIBUTE,
  				RequestAttributes.SCOPE_REQUEST);
  	}
docs: Get the current site preference for the user from the request attributes map.
  @return the site preference, or null if none has been set