/** * Gets the List of currencies configured to use in Mifos, the first element will be the default * currency. * * @return List of currencies */ public static LinkedList<MifosCurrency> getCurrencies() { if (currencies.size() == 0) { currencies.add(AccountingRules.getMifosCurrency(new ConfigurationPersistence())); ConfigurationPersistence configurationPersistence = new ConfigurationPersistence(); for (String currencyCode : AccountingRules.getAdditionalCurrencyCodes()) { currencies.add(getMifosCurrency(currencyCode, configurationPersistence)); } } return currencies; }