Changed refreshEntity() to use add() rather than update() when re-inserting the entity into cache