replacementsFile.writeLong(existingObjectHeaderData.getOffset());
long replacementLengthEntryOffset = replacementsFile.getCursorOffset();
replacementsFile.writeLong(0);//reserve space for replacement length entry. //TODO skip faster?
long newObjectIDOffset = replacementsFile.getCursorOffset();
replacementsFile.writeShort(objIdWithRedirectionBit);//write new ID to replacements file
writeEntryLenForID(objId,objectBodyLength,replacementsFile);//write length of replacements file, could be bigger than actual object's data occupies
long newObjectBodyOffset = replacementsFile.getCursorOffset();
//return to write actual length of replacement entry
replacementsFile.seek(replacementLengthEntryOffset);