java8 blog post

a small refactoring