final int index = (int) (addressKey % PageManager.getDefaultPageSize());
try {
final PageAddress pageAddress = new PageAddress(0, this.keysFilename);
final byte[] page = BufferManager.getBufferManager().getPage(this.TABLEPAGESIZE, pageAddress);
final OutputStream out = new ContinousPagesOutputStream(pagenumber, new PageManager(this.keysFilename, false, false), index);
OutHelper.writeLuposLong(addressOfValues, out);
OutHelper.writeLuposLong(numberOfKeyElements, out);
OutHelper.writeLuposLong(addressOfNextKey, out);
Registration.serializeWithoutId(key, out);
out.close();
BufferManager.getBufferManager().modifyPage(this.TABLEPAGESIZE, pageAddress, page);
} catch (final IOException e) {
System.err.println(e);
e.printStackTrace();
}