1. Upgrade maven compiler target and source to Java 8
2. Replace some classes with lambda expressions