reflection in Entity refactored