create an EntityBuilder so that models can return entities when queried.