code: public static Serializable deserialize(final ByteBuf content) throws Exception {
          byte[] serialized = new byte[content.readableBytes()];
          content.getBytes(0, serialized);
          ByteArrayInputStream bis = new ByteArrayInputStream(serialized);
          ObjectInputStream is = new ObjectInputStream(bis);
          Serializable deserialized = (Serializable) is.readObject();
          is.close();
          bis.close();
          return deserialized;
      }
docs: Takes the input content and deserializes it.
  
  @param content the content to deserialize.
  @return the serializable object.
  @throws Exception if something goes wrong during deserialization.