code: private WApplication findApplication() {
  		WApplication appl = WApplication.instance(this);
  
  		if (appl == null) {
  			messages.addMessage(new Message(Message.WARNING_MESSAGE,
  					"There is no WApplication available for this example."));
  		}
  
  		return appl;
  	}
docs: Find the closest WApplication instance.
  
  @return the closest WApplication instance