Replacing old SAM type style with java8 goodness.