Trovit/src/main/java/org/openestate/io/trovit/TrovitUtils.java
public static Currency parsePriceCurrencyValue(String value) {
        value = StringUtils.trimToNull(value);
        if (value == null) return null;

        try {
            return Currency.getInstance(value.toUpperCase());
        } catch (IllegalArgumentException ex) {
            throw new IllegalArgumentException("Can't parse price currency value '" + value + "'!", ex);
        }
    }
public static Currency parsePriceCurrencyValue(String value) {
        value = StringUtils.trimToNull(value);
        if (value == null) return null;

        try {
            return Currency.getInstance(value.toUpperCase());
        } catch (IllegalArgumentException ex) {
            throw new IllegalArgumentException("Can't parse price currency value '" + value + "'!", ex);
        }
    }
Read a {@link Currency} value from XML.

@param value XML string
@return parsed value or null, if the value is invalid