code: private void dotMobi() throws ServletException {
  		if (serverName == null) {
  			throw new ServletException("serverName init parameter not found");
  		}
  		int lastDot = serverName.lastIndexOf('.');
  		this.siteSwitcherHandler = new StandardSiteSwitcherHandler(new StandardSiteUrlFactory(serverName),
  				new StandardSiteUrlFactory(serverName.substring(0, lastDot) + ".mobi"), null,
  				new StandardSitePreferenceHandler(new CookieSitePreferenceRepository("." + serverName)), tabletIsMobile);
  	}
docs: Configures a site switcher that redirects to a <code>.mobi</code> domain for normal site requests that either
  originate from a mobile device or indicate a mobile site preference.
  Will strip off the trailing domain name when building the mobile domain
  e.g. "app.com" will become "app.mobi" (the .com will be stripped).
  Uses a {@link CookieSitePreferenceRepository} that saves a cookie that is shared between the two domains.