added Object to each forEach method to validate that it works properly with groovy