Removed lambda because project was downgraded to Java 7

Fixed compile problem.