Implemented a decorator via a functional interface in lambdas