writer = new BufferedWriter(
new OutputStreamWriter(locksFile.getOutputStream()));
for (int i = 0; i < list.size(); i++) {
AbstractLockInfo info = (AbstractLockInfo) list.get(i);
writer.write(info.lockToken.toString());
writer.newLine();
}
} catch (FileSystemException fse) {
log.warn("I/O error while saving locks to '"
+ locksFile.getPath() + "': " + fse.getMessage());
log.debug("Root cause: ", fse);