Lambda and foreach conversion. Change-Id: I28adc76e718e4961972ee152dcda4ca55d71e5f4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>