log.debug(" Name: " + xAccount.getLogin());
log.debug(" Pass: " + data.getUserPassword());
log.debug("View: " + viewToUse.getName());
data.setAuthenticated(true);
ViewConverter conv = new ViewConverter();
XView xView = (XView) conv.toXObject(viewToUse);
data.setViews(new XView [] {xView});
}
if (viewIdFound != null && accountToUse == null) {
data.addError(UserSession.trans(locale, "viewCannotBeSeen", viewIdFound.getName(), viewIdFound.getId()));
}