BS-2698: added IOUtil method + tests
BS-2698
Add toByteArray(Document)
BS-2787
Add addJarEntry
BS-2787
Fix addJarEntry + tests
BS-2787
Fix addJarEntry + tests