Attempt at integrating closure with the rest of midPoint.