if (_tabs.size() == 1 && _tabPnl.getTabCount() == 0) {
log.debug(
"addObjectPanelTab: _tabs.size() == 1, but " +
"_tabPnl.getTabCount() == 0 - adding first tab component to " +
"the tabbed page");
IObjectTab firstTab = _tabs.get(0);
_tabPnl.addTab(firstTab.getTitle(),
null,
firstTab.getComponent(),
firstTab.getHint());
}
tab.setSession(_app.getSessionManager().getSession(_sessionId));
final String title = tab.getTitle();
_tabPnl.addTab(title, null, tab.getComponent(), tab.getHint());