run findbugs plugin over code and fixed bugs: Most common one: Use equals() with Long comparisons...