* Construct a new Tab object containing all provided elements
*/
WidgetCollectionParameters wcp = new WidgetCollectionParameters();
wcp.setContainedElements(tab.getElements());
WidgetCollection widgetCollection = new WidgetCollection(wcp);
TabParameters tabParams = new TabParameters();
tabParams.setTitle(tab.getTitle());
tabParams.setContainedElements(Arrays.asList(new DialogElement[] { widgetCollection }));
tabParams.setListeners(tab.getListeners());
return new Tab(tabParams);
}