public static Currency parsePriceCurrencyValue(String value) {
    """
	Read a {@link Currency} value from XML.
	
	@param value XML string
	@return parsed value or null, if the value is invalid
    """
        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);
        }
    }
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
Read a { @link Currency } value from XML .