public void save(TemplatePersistenceData[] templates,OutputStream stream) throws IOException {
  save(templates,new StreamResult(stream));
}

public void save ( TemplatePersistenceData [ ] templates , OutputStream stream ) throws IOException { save ( templates , new StreamResult ( stream ) ) ; }
saves the templates as xml , encoded as utf - 8 onto the given byte stream .
