made mapFieldToToken public, so it can be used in custom implementation