private synchronized void savePage(Page page) {

		FileWriter writer = null;

		try
		{
			writer = new FileWriter("page" + page.getPageId());
			writer.write("LSN:" + Integer.toString(page.getLsn()) + "|");
			writer.write("taId:" + Integer.toString(page.getTa().getTaId()) + "|");

			writer.write("data:" + page.getData());

			System.out.println("Stored: " + "\nPageNr " + page.getPageId() + "\nLSN " + page.getLsn() + "\ntaId " + page.getTa().getTaId() + "\nWith Data: " + page.getData() + "\n--------------------");
		} catch (IOException e)
		{
			e.printStackTrace();
		} finally
		{
			try
			{
				if (writer != null)
				{
					writer.close();
				}
			} catch (IOException ex)
			{
				ex.printStackTrace();
			}
		}
	}