public boolean serializeSessionKey(String keyFilename, SessionKey sessionKey) {

		try {
			File f = new File(keyFilename);
			f.createNewFile();

			OutputStream file = new FileOutputStream(keyFilename);
			OutputStream buffer = new BufferedOutputStream(file);
			ObjectOutput output = new ObjectOutputStream(buffer);
			try {
				output.writeObject(sessionKey);
			} finally {
				output.close();
			}
		} catch (IOException e) {
			System.out.println("An error has ocurred serializing key to disk: "	+ e.getMessage());
			if (DEBUG)
				e.printStackTrace();
			return false;
		}
		return true;
	}