public static Object bytesToObject (byte bytes[]) throws IOException,ClassNotFoundException
	{
		Object res;
		java.io.ObjectInputStream in;
		java.io.ByteArrayInputStream bs;

		bs = new java.io.ByteArrayInputStream (bytes);
		in = new java.io.ObjectInputStream(bs);
		res = in.readObject ();
		in.close ();
		bs.close ();
		return res;
	}