use EntityIdReader instead of AccessRecordUtil
remove duplicate write methods