List<Object> scs = new ArrayList<Object>();
if (null != scopes) scs.addAll(Arrays.<Object>asList(scopes));
scs.add(parameters);
scs.add(new Object() {
Function slots = new TemplateFunction() {
@Override
public String apply(String input) {
return "{{>" + input.trim() + "}}";
}
};