changed model.bean to model.domain