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

        final ForeclosureTypeValue foreclosure = ForeclosureTypeValue.fromXmlValue(value);
        if (foreclosure != null) return foreclosure;

        throw new IllegalArgumentException("Can't parse foreclosure type value '" + value + "'!");
    }
public static ForeclosureTypeValue parseForeclosureTypeValue(String value) {
        value = StringUtils.trimToNull(value);
        if (value == null) return null;

        final ForeclosureTypeValue foreclosure = ForeclosureTypeValue.fromXmlValue(value);
        if (foreclosure != null) return foreclosure;

        throw new IllegalArgumentException("Can't parse foreclosure type value '" + value + "'!");
    }
Read a {@link ForeclosureTypeValue} value from XML.

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