public static boolean writeObject(Object object, String filename)
	{
		ObjectOutputStream out = null;
		try {
			out = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(filename)));
			out.writeObject(object);
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		} finally {
			if (out != null)
			{
				try { out.close(); } catch (IOException e) { }
			}
		}
		return true;
	}