code: public static Serializable deserialize(byte[] ba)
      throws IOException, ClassNotFoundException {
  
          HsqlByteArrayInputStream bi = new HsqlByteArrayInputStream(ba);
          ObjectInputStream        is = new ObjectInputStream(bi);
  
          return (Serializable) is.readObject();
      }
docs: Deserializes the specified byte array to an
  <CODE>Object</CODE> instance.
  
  @return the Object resulting from deserializing the specified array of bytes
  @param ba the byte array to deserialize to an Object