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