How to transform your legacy code to Java8.