static inner class.
Docs and a couple findbugs catches.