code: public static Object getController(BaseComponent comp, boolean recurse) {
          return recurse ? comp.findAttribute(Constants.ATTR_COMPOSER) : comp.getAttribute(Constants.ATTR_COMPOSER);
      }
docs: Returns the controller associated with the specified component, if any.
  
  @param comp The component whose controller is sought.
  @param recurse If true, search up the parent chain until a controller is found.
  @return The associated controller, or null if none found.