I must admit I don't get the purpose of `emptyContextToUpdate`. This method is invoked twice, once with the flag and once without. Wouldn't it be better to just in-line this method?