Move resource loading into its own method
Add FindBugs
Fix issues found by FindBugs