code: public boolean isBlackBerry() {
  		if(!isBlackBerryDone) {
  			String agent = req.getHeader("user-agent");
  			isBlackBerry=agent != null && agent.startsWith("BlackBerry");
  			isBlackBerryDone=true;
  		}
  		return isBlackBerry;
  	}
docs: Determines if the request is for a BlackBerry browser