try {
if (toBackupList == null) {
header.writeToFile();
} else {
final byte[] data = header.writeToFileGetWrited();
toBackupList.add(new ToBackupRecord(header
.getPositionInFile(), data));
}
} catch (HeapException exception) {
LOGGER.fatal(WRITE_FILE_HEADER_FAILED, exception);
throw new HeapException(WRITE_FILE_HEADER_FAILED, exception);