Fix compilation with JDK8. Minor polishing in mongo model
Merge pull request #212 from mposolda/jdk8-mongo

Fix compilation with JDK8. Minor polishing in mongo model