private static IPropertySourceProvider getProvider(Object object) {
if (object instanceof Component) {
Component widget = (Component) object;
return WidgetAdapter.getWidgetAdapter(widget);
} else if (object instanceof LayoutManager) {
LayoutAdapter adapter = LayoutAdapter.createLayoutAdapter(object.getClass());
return adapter;
} else if(object instanceof WidgetSelection){
WidgetSelection selection = (WidgetSelection)object;
if (!selection.isEmpty()) {
if (selection.size() == 1) {