List guides = person.getGuides(); if ((guides == null) || (guides.size() == 0)) {
List<Guide> guides = new ArrayList<Guide>(person.getGuides()); if (guides.size() == 0) {
	public List run(Integer personID) throws Exception {		// Check if person exists		Person person = (Person) rootDomainObject.readPartyByOID(personID);		if (person == null) {			throw new NonExistingServiceException();		}        List guides = person.getGuides();        if ((guides == null) || (guides.size() == 0)) {            return null;        }        		BeanComparator numberComparator = new BeanComparator("number");		BeanComparator versionComparator = new BeanComparator("version");		ComparatorChain chainComparator = new ComparatorChain();		chainComparator.addComparator(numberComparator);		chainComparator.addComparator(versionComparator);		Collections.sort(guides, chainComparator);				return getLatestVersions(guides);	}