Make inner classes static as appropriate.
Remove unnecessary synchronized.
Use valueOf instead of new Integer/Long
Comparators should be Serializable
PacketSorter performance tweak to save lookups.
Remove redundant null checks.
Use StringBuffer in Proposal.toString
Check and log file handling issues where appropriate.