docs: public static Object dataDeserialize(byte[] data, String type) throws IOException, ClassNotFoundException {
  
          // check the type of the stored data
          Class<?> clazz = Class.forName(type);
  
          if (isParseable(clazz)) {
              // this is parseable data
              return parse(new String(data), clazz);
          }
  
          // this is a serialized object
          ByteArrayInputStream bin = new ByteArrayInputStream(data);
          ObjectInputStream oin = new ObjectInputStream(bin);
          return oin.readObject();
      }