refactoring from spring-petclinic to entity