public List<Pet> getPets() {
        List<Pet> sortedPets = new ArrayList<>(getPetsInternal());
        PropertyComparator.sort(sortedPets, new MutableSortDefinition("name", true, true));
        return Collections.unmodifiableList(sortedPets);
    }
Simple JavaBean domain object representing an owner.

@author Ken Krebs
@author Juergen Hoeller
@author Sam Brannen
@author Michael Isvy
src/main/java/org/springframework/samples/petclinic/model/Owner.java