code: private void urlPath() throws ServletException {
  		SiteUrlFactory normalSiteUrlFactory = new NormalSitePathUrlFactory(mobilePath, tabletPath, rootPath);
  		SiteUrlFactory mobileSiteUrlFactory = null;
  		SiteUrlFactory tabletSiteUrlFactory = null;
  		if (mobilePath != null) {
  			mobileSiteUrlFactory = new MobileSitePathUrlFactory(mobilePath, tabletPath, rootPath);
  		}
  		if (tabletPath != null) {
  			tabletSiteUrlFactory = new TabletSitePathUrlFactory(tabletPath, mobilePath, rootPath);
  		}
  		this.siteSwitcherHandler = new StandardSiteSwitcherHandler(normalSiteUrlFactory, mobileSiteUrlFactory,
  				tabletSiteUrlFactory, new StandardSitePreferenceHandler(new CookieSitePreferenceRepository()), null);
  	}
docs: Configures a site switcher that redirects to a path on the current domain for normal site requests that either
  originate from a mobile or tablet device, or indicate a mobile or tablet site preference.
  Uses a {@link CookieSitePreferenceRepository} that saves a cookie that is stored on the root path.