return;
}
if (mainTabSet.getNumTabs() > 1) {
mainTabSet.removeTab(1);
}
final SamplePanel panel = factory.createPanel();
final String name = treeNode.getName();
final String icon = treeNode.getIcon();
String userId = panel.ensureUserLoggedIn();
if (userId == null) {
// Log out, then show sample:
Authentication.getInstance().logout(new BooleanCallback() {
public void execute(Boolean value) {