Make getWidgetBehavior return provided Behavior type parameter instead of IWidgetBehavior.