DDBNEXT-342: convert method to closure