if (!committeesDir.exists()) committeesDir.mkdirs();
ArrayList<Committee> committees = new ArrayList<Committee>();
for (File committeeFile : FileUtils.listFiles(committeesDir, new String[]{"json"}, false)) {
Committee committee = mapper.readValue(committeeFile, Committee.class);
ArrayList<Member> members = committee.getMembers();
Collections.sort(members, new Comparator<Member>() {
public int compare(Member a, Member b) {
return a.getShortName().compareToIgnoreCase(b.getShortName());
}
});
committee.setMembers(members);
committees.add(committee);
}
Collections.sort(committees, new Comparator<Committee>() {
public int compare(Committee a, Committee b) {