if (acc.getConnection().getId().equals(conToUse.getId())) {
accountToUse = acc;
}
}
if (accountToUse == null) {
accountToUse = admService.createAccount(user, pass, viewApiUser, conToUse);
admService.save(accountToUse);
}
}
if (accountToUse != null && authenticatedUser != null) {
AccountConverter co = new AccountConverter();