String () { try { PickleStepTestStep pickleStep = (PickleStepTestStep) myRealStep; String location = pickleStep.getStepLocation(); if (location.startsWith("file://")) { location = location.substring("file://".length()); } else if (location.startsWith("file:")) { location = location.substring("file:".length()); } int lastColonIndex = location.lastIndexOf(':'); String filePath = location.substring(0, lastColonIndex); String lineNumberString = location.substring(lastColonIndex + 1); String result = CucumberJvmSMFormatterUtil.getStepKeyword(filePath, Integer.parseInt(lineNumberString)); if (result != null) { return result; } } catch (Throwable ignored) { } return "Given"; }