code: public static DeviceType getDevice(final Request request) {
  		if (request instanceof ServletRequest) {
  			return getDevice(((ServletRequest) request).getBackingRequest());
  		}
  		return DeviceType.NORMAL;
  	}
docs: Helper method that uses the current WComponents {@link Request} interface to determine the user's device type.
  
  @param request the request being processed
  @return the device type