@Deprecated
    public static boolean parseFirstValueAsBoolean( FormField field, boolean defaultValue )
    {
        final String value = field.getFirstValue();
        if ( value == null || value.isEmpty() )
        {
            return defaultValue;
        }
        if ( "0".equals( value ) || "false".equals( value ) )
        {
            return false;
        }
        if ( "1".equals( value ) || "true".equals( value ) )
        {
            return true;
        }

        throw new IllegalArgumentException( "Unable to parse value '" + value + "' as Data Form Field boolean." );
    }
Returns the first value of the formfield as a boolean.

@param field A form field (cannot be null)
@param defaultValue Returned if first value is null or empty.
@return true if the provided input equals '1' or 'true', false if the input equals '0' or 'false'.
@throws IllegalArgumentException when the input cannot be parsed as a boolean.
@deprecated Use FormField#parseFirstValueAsBoolean(String) provided by Tinder version 1.3.1 or newer.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/spi/IQOwnerHandler.java