conflate the combineRecordsBeginTag and EndTag into one (we can figure out the latter based on the former).