some java8 refactorings, added more tests for the software entities mapping
integrated latest changes from dnet40
implemented use of opt in/out rules for entity fields (#2557).depending on specific solrj version (thus excluding cdh6.X versions)
just to let the test compile
codebase used to migrate to java8 the production system