public Account getAccount(final String accountCode) {
        if (accountCode == null || accountCode.isEmpty())
            throw new RuntimeException("accountCode cannot be empty!");

        return doGET(Account.ACCOUNT_RESOURCE + "/" + accountCode, Account.class);
    }
public Account getAccount ( final String accountCode ) { if ( accountCode == null || accountCode . isEmpty ( ) ) throw new RuntimeException ( "accountCode cannot be empty!" ) ; return doGET ( Account . ACCOUNT_RESOURCE + "/" + accountCode , Account . class ) ; }
Get Account
<p>
Returns information about a single account.

@param accountCode recurly account id
@return account object on success, null otherwise