apdfile.lockFile();
// LATER: Refactor these local AppDatastream IO stuff to their own class.
JarOutputStream dstrm =
- new JarOutputStream(
- new BufferedOutputStream(new java.io.FileOutputStream(apdfile.sessionFile)));
+ new JarOutputStream(apdfile.fileLock.getBufferedOutputStream(true));
if (!clientOrUser) {
newAppDataStream = dstrm;
} else {