code: public static boolean isTablet(Device device, SitePreference sitePreference) {
  		return sitePreference == SitePreference.TABLET || device != null && device.isTablet() && sitePreference == null;
  	}
docs: Should the combination of {@link Device} and {@link SitePreference} be handled
  as a tablet device
  @param device the resolved device
  @param sitePreference the specified site preference
  @return true if tablet