public static Object fromByteArray(final byte[] objectData)
    {
        ByteArrayInputStream bais = new ByteArrayInputStream(objectData);
        ObjectInputStream ois = null;
        try {
            ois = new ObjectInputStream(bais);
            final Object obj = ois.readObject();
            return obj;

        } catch (Exception ex) {
            throw new SerializationException(ex);
        } finally {
            try {
                if (ois != null) {
                    ois.close();
                }
            } catch (IOException ex) {
                // ignore close exception
            }
        }
    }