public BigDecimal validate(String value, DecimalFormat format) {
        return (BigDecimal) parse(value, format);
    }
<p>
Validate/convert a <code>BigDecimal</code> using the specified <code>DecimalFormat</code>.

@param value The value validation is being performed on.
@param format The format used to validate the value against.
@return The parsed <code>BigDecimal</code> if valid or <code>null</code> if invalid.
primefaces/src/main/java/org/primefaces/util/BigDecimalValidator.java