This whole new section should be moved to AbstractWidgetRenderer, so that it can be used by all subclasses (similar to e.g. getLabel()).