private synchronized void incrementLSN() {

		FileWriter writer = null;

		try
		{
			writer = new FileWriter("logSequenceNumber");
			writer.write(Integer.toString(logSequenceNumber + 1));
		} catch (Exception e)
		{
			e.printStackTrace();
		} finally
		{
			if (writer != null)
			{
				try
				{
					writer.close();
				} catch (IOException e)
				{
					e.printStackTrace();
				}
			}
		}

		this.logSequenceNumber++;
	}