ByteArrayInputStream bais = new ByteArrayInputStream(objectData); return deserialize(bais);
ObjectInputStream in = null; try {  in = new ObjectInputStream(inputStream); return in.readObject();  } catch (ClassNotFoundException ex) { throw new SerializationException(ex); } catch (IOException ex) { throw new SerializationException(ex); } finally { try { if (in != null) { in.close(); } } catch (IOException ex) {  } }
    public static Object deserialize(byte[] objectData) {        if (objectData == null) {            throw new IllegalArgumentException("The byte[] must not be null");        }        ByteArrayInputStream bais = new ByteArrayInputStream(objectData);        return deserialize(bais);    }