class WorkflowResource {

    protected List<String> getActivityNameList(String bpmnContent) {
        List<String> activityNameList = new ArrayList<>();

        Pattern p = Pattern.compile(PATTERN);
        Matcher m = p.matcher(bpmnContent);
        while (m.find()) {
            activityNameList.add(m.group(1));
        }
        return activityNameList;
    }

}