Fixes 3160: ActionConstants complexity

Fixes #3160: ActionConstants complexity

Added a bunch of unit tests 
Fixed some checkstyle issues.
Added some javadoc