Canonical DCI example implemented in Java 8 with Lambda functions