* @param templateStream the template as a stream
* @return the expanded rules as a string
*/
public String compile(final Collection<?> objs,
final InputStream templateStream) {
TemplateContainer tc = new DefaultTemplateContainer( templateStream );
closeStream( templateStream );
return compile( new ObjectDataProvider( tc, objs ),
new TemplateDataListener( tc ) );
}