//---------------------------------------------------------------------------------------------------------
Folder folder = new FolderImpl();
folder.setPath("/folder2");
folder.setName("folder2");
Document document = new DocumentImpl();
document.setPath("/folder2/document4");
document.setName("document4");
document.setContentType("plain/text");
DocumentStream documentStream = new DocumentStream();
documentStream.setEncoding("utf-8");
documentStream.setContent("Test Content 4".getBytes());
document.setDocumentStream(documentStream);
Folder subFolder = new FolderImpl();
subFolder.setName("subfolder");
subFolder.setPath("/folder2/subfolder");