update

Messing with factory - removed explicit casting of Entity entity.