code: public final Object deserialize(byte[] bytes, ClassLoader loader) throws ClassNotFoundException, IOException {
          if (bytes == null)
              return null;
  
          InputStream iin = new InflaterInputStream(new ByteArrayInputStream(bytes));
          SerializationService serializationSvc = serializationSvcRef.getService();
          ObjectInputStream oin = loader == null || serializationSvc == null ? new ObjectInputStream(iin) : serializationSvc.createObjectInputStream(iin, loader);
          try {
              return oin.readObject();
          } finally {
              oin.close();
          }
      }
docs: Utility method that deserializes an object from bytes.
  
  @param bytes from which to deserialize an object. If null, then null should be returned as the result.
  @param loader optional class loader to use when deserializing.
  @return deserialized object.
  @throws IOException if an error occurs deserializing the object.