Coded UpdateStateManager in Entity.