LOG.debug("writing overflow page");
LOG.debug("writing overflow page " + firstPage.getPageNum());
		public void write(byte[] data) {			LOG.debug("writing overflow page");			try {				int remaining = data.length;				int chunkSize = fileHeader.getWorkSize();				Page page = firstPage, next = null;				int chunk, pos = 0;				Value value;				while (remaining > 0) {					chunkSize =						remaining > fileHeader.getWorkSize() ? fileHeader.getWorkSize() : remaining;					value = new Value(data, pos, chunkSize);					remaining -= chunkSize;					if (remaining > 0) {						next = createNewPage();						page.getPageHeader().setNextPage(next.getPageNum());						LOG.debug("next: " + next.getPageNum());					} else						page.getPageHeader().setNextPage(-1);					writeValue(page, value);					pos += chunkSize;					page = next;					next = null;				}			} catch (IOException e) {				LOG.error("io error while writing overflow page", e);			}		}