EntityFactory now works with reflection