/** * Adds the given account to the pool. * * @param account an account */ public void addAccount(final Account account) { if (account != null) { accounts.add(account); } }
/** * Get an account. * * @return an account or <code>null</code> if no account is available. */ public Account getAccount() { return accounts.getDataElement(); }