public Currency search(String token) {
        for (Currency currency : CurrencySet.getInstance()) {
            if (currency.getCode().toLowerCase().equals(token.toLowerCase()))
                return currency;
            if (currency.getSymbol().toLowerCase().equals(token.toLowerCase()))
                return currency;
            if (currency.getName().toLowerCase().equals(token.toLowerCase()))
                return currency;
        }
        return null;
    }