packageat.ac.tuwien.sepm.assignment.individual.util;importat.ac.tuwien.sepm.assignment.individual.entity.Horse;importat.ac.tuwien.sepm.assignment.individual.entity.Owner;importorg.springframework.stereotype.Component;@ComponentpublicclassValidator{publicvoidvalidateNewOwner(Ownerowner)throwsValidationException{}publicvoidvalidateUpdateOwner(Ownerowner)throwsValidationException{}publicvoidvalidateNewHorse(Horsehorse)throwsValidationException{if(horse.getScore()>5||horse.getScore()<1){thrownewValidationException("Score value "+horse.getScore()+" not allowed. The score must be an integer between 1 and 5");}}}