ViewService vService = ServiceProvider.getViewService(user);
View view = vService.getView(xView.getId());
if (!accountId.equals(xView.getAccountId())) {
try {
Account newAccount = (Account) MapperRegistry.getInstance().getAccountManagement().find(accountId);
if (newAccount != null) {
vService.setAccount(newAccount, view);
xView.setAccountId(newAccount.getId());
}
} catch (SQLException e) {
}
}
if (!dbId.equals(xView.getDatabaseId())) {