Mascot 2015 implementation in Java8