final Window window = new Window(I18N.get("Setup_Administrator"));
window.setClosable(false);
window.setParent(getRoot());
Editor editor = new Editor();
editor.setObject(administrator);
editor.addChangeListener(new ActionListener() {
public void actionPerformed(Event evt) {
window.close();
redirectToLogin();
}
});
editor.refresh();
editor.setParent(window);
} else {
redirectToLogin();
}
}