List<String> (String value) { if (value == null) { return ContainerUtil.emptyList(); } List<String> vars = new ArrayList<>(); Matcher m = Pattern.compile("\\{(.+?)\\}").matcher(value); while (m.find()) { vars.add(m.group(0)); } return vars; }