}
public void writeLockInfo(RandomAccessFile lockFileAccess, LockInfo lockInfo) throws IOException {
lockFileAccess.seek(infoRegionPos);
DataOutputStream outstr = new DataOutputStream(new BufferedOutputStream(new RandomAccessFileOutputStream(lockFileAccess)));
outstr.writeByte(lockInfoSerializer.getVersion());
lockInfoSerializer.write(outstr, lockInfo);
outstr.flush();
lockFileAccess.setLength(lockFileAccess.getFilePointer());