question: public void save ( TemplatePersistenceData [ ] templates , OutputStream stream ) throws IOException { save ( templates , new StreamResult ( stream ) ) ; }
target:  Saves the templates as XML, encoded as UTF-8 onto the given byte stream.