admService.save(accountToUse);
}
}
if (accountToUse != null && authenticatedUser != null) {
AccountConverter co = new AccountConverter();
XAccount xAccount = (XAccount) co.toXObject(accountToUse);
data.setXAccount(xAccount);
data.setUserPassword(accountToUse.getUser().getPassword());
log.debug("AccountToUse:");
log.debug(" Name: " + xAccount.getLogin());
log.debug(" Pass: " + data.getUserPassword());