Reformat license header for consistency
Added licene-maven-plugin to build

The plugin adds basic checks for license headers. At
this stage we only enable checks for java source files.
Other files are omitted at this point.
Fixes NPE in bool filter, when an empty should filter clause returns a DocIdSet, but null as iterator.

Closes #4685