adapted to allure-core version 1.4.x

``copied``