public static Set<String> toStringSet(TemplateSequenceModel seqModel) throws TemplateModelException {
  Set<String> set=new HashSet<String>();
  for (int i=0; i < seqModel.size(); i++) {
    set.add(getAsStringNonEscaping((TemplateScalarModel)seqModel.get(i)));
  }
  return set;
}

public static Set < String > toStringSet ( TemplateSequenceModel seqModel ) throws TemplateModelException { Set < String > set = new HashSet < String > ( ) ; for ( int i = 0 ; i < seqModel . size ( ) ; i ++ ) { set . add ( getAsStringNonEscaping ( ( TemplateScalarModel ) seqModel . get ( i ) ) ) ; } return set ; }
to string set . < p > warn : bypasses auto - escaping , caller handles . ( e . g . the object wrapper used to rewrap the result ) .
