if(horse.getName()==null||horse.getScore()==0||horse.getBirthday()==null||horse.getDescription()==null){thrownewValidationException("All or some required values missing: name, description, score, birthday");}
if(horse.getScore()>5||horse.getScore()<1){thrownewValidationException("Score value "+horse.getScore()+" not allowed. The score must be an integer between 1 and 5");}}}