}
private void prepareSample(TreeNode node) {
if (node instanceof SampleTreeNode) {
SampleTreeNode treeNode = (SampleTreeNode) node;
SamplePanelFactory factory = treeNode.getFactory();
if (factory == null) {
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) {