use Factory to create entity instance