new factory method added - createEntityWithName