}
return account;
}
public Account getAccountByName(String accountName) {
Account account = accountsByName.get(accountName);
// for accounts that were not mapped to names in ice.properties (ice.account.xxx), this check will make sure that
// data/tags are updated properly once the mapping is established in ice.properties
if (account == null) {
account = accountsById.get(accountName);
}
if (account == null) {
account = new Account(accountName, accountName);
accountsByName.put(account.name, account);
accountsById.put(account.id, account);
}
return account;
}