code: private Object deserialize(InputStream byteStream) throws IOException, ClassNotFoundException {
          ObjectInputStream in = new ObjectInputStream(byteStream);
          try {
              return in.readObject();
          } finally {
              in.close();
          }
      }
docs: /*
  Deserialize an object from a byte array.