code: public static WApplication instance(final WComponent base) {
  		WApplication appl = WebUtilities.getClosestOfClass(WApplication.class, base);
  		return appl;
  	}
docs: Returns the closest WApplication instance (ancestor component) from the given base component.
  
  @param base the component from which we start scanning up the tree for a WApplication instance
  @return the closest WApplication instance from the given base component