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