Adding an util method in order to return a StreamingOutput from Messages