log.debug("No exact account match found, but something close enough: " + bestMatch.getLoginName() + ", " + bestMatch.getConnection().getHost() + ", " + bestMatch.getConnection().getService());
accountToUse = bestMatch;
viewToUse = bestView;
}
if (accountToUse != null) {
AccountConverter co = new AccountConverter();
XAccount xAccount = (XAccount) co.toXObject(accountToUse);
data.setXAccount(xAccount);
log.debug("AccountToUse:");
log.debug(" Name: " + xAccount.getLogin());
log.debug(" Pass: " + data.getUserPassword());
log.debug("View: " + viewToUse.getName());