private OrganisationLocation findDestination(SustainifyUser user) { for (OrganisationLocation location : user.getOrganisation().getLocations()) { if (this.location.equals(location.getId())) { return location; } } return user.getOrganisation().getLocations().iterator().next(); }
public String getDestination() { OrganisationLocation destination = findDestination(sessionContext.getAuthentication().getUser()); return destination.getName(); }