update from Seb to avoid deprecated API on Java-Cucumber