public static void writeObject(String parent, String fileName, Serializable obj) {
		File parentDir = new File(parent);
		parentDir.mkdirs();
		ObjectOutputStream oos = null;
		try {
			oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(new File(parentDir, fileName))));
			oos.writeObject(obj);
			oos.flush();
		} catch (IOException e) {
			CommonUtils.throwRuntimeExceptionAndPrint(e);
		} finally {
			if (oos != null)
				try {
					oos.close();
				} catch (IOException e) {
					CommonUtils.throwRuntimeExceptionAndPrint(e);
				}
		}
	}