code:     public static Object deserialize(byte[] data)
          throws IOException, ClassNotFoundException
      {
          ByteArrayInputStream in = new ByteArrayInputStream(data);
          ObjectInputStream is = new ObjectInputStream(in);
          return is.readObject();
      }
  
  