DisplayFlags.setDisplayFlagsFor(xView, user, xView.getDisplayFlags(), data.getGlobalDisplayFlags());
DisplayFlags displayFlags = DisplayFlags.getDisplayFlagsFor(xView);
dispatcher.dispatch(WPaloEvent.INIT, displayFlags);
directLogin(user);
// CubeViewEditor.hasBeenResized = true;
dispatcher.dispatch(WPaloEvent.EDIT_VIEWBROWSER_VIEW, xView);
if (data.getErrors().length > 0) {
StringBuffer buf = new StringBuffer();
for (String s: data.getErrors()) {
buf.append(s + "\n");
}