IDEAS-395 : Initial implementation of the output stream handling