code: private Serializable deserializeObject(byte[] buffer) throws IOException, ClassNotFoundException {
  
          Serializable theObject = null;
          DeserializationObjectInputStream objectIn = null;
  
          if (buffer != null) {
              objectIn = new DeserializationObjectInputStream(new ByteArrayInputStream(buffer), Thread.currentThread().getContextClassLoader());
              theObject = (Serializable) objectIn.readObject();
              objectIn.close();
          }
          return theObject;
      }
docs: This method is used to de-serialized a table BLOB field to its original object form.
  
  @param buffer the byte array save a BLOB
  @return the object saved as byte array
  @throws IOException
  @throws ClassNotFoundException