class ScenarioExtractorUtil {

    public static String removeFunctionalitiesFromScenarioName(String name) {
        if (name != null) {
            final Matcher matcher = FUNCTIONALITY_PATTERN_ON_NAME.matcher(name);
            if (matcher.matches()) {
                return name.substring(matcher.group(1).length());
            }
        }
        return name;
    }

}