private static Object decodeObject(String text) {
        Object result = null;
        if (text.startsWith("[]"))
            result = HexString.hexToBin(text, 2);
        else
            result = URLDecode(text);
        return result;
    }
private static Object decodeObject ( String text ) { Object result = null ; if ( text . startsWith ( "[]" ) ) result = HexString . hexToBin ( text , 2 ) ; else result = URLDecode ( text ) ; return result ; }
Decode an object as a string or byte array