public static byte[] objectToBytes (Object object) throws IOException
	{
		java.io.ObjectOutputStream out;
		java.io.ByteArrayOutputStream bs;

		bs = new java.io.ByteArrayOutputStream ();
		out = new java.io.ObjectOutputStream (bs);
		out.writeObject (object);
		out.close ();

		return bs.toByteArray ();
	}