}
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) {