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

        final TypeValue type = TypeValue.fromXmlValue(value);
        if (type != null) return type;

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

        final TypeValue type = TypeValue.fromXmlValue(value);
        if (type != null) return type;

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

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