#2210: convert cache menu to resource
cleanup: remove unused static fields
refactoring: fix lint and findbugs warnings
build: error on duplicate ids

* by default, duplicate ids only show a warning
* generally, this will be wrong at runtime, therefore make it an error
#2210: convert cache list menus to resource