Creates a sub-folder with given name in given parent folder. The unique key of the resulting folder (type of document record) is returned.
protected DocumentRepository documentRepository;
//the first parameter, name, sets the subfolder name
//the second parameter, parentUniqueKey, identifies the folder where the folder will be created
String uniqueKey = documentRepository.createSubFolder("Child Folder", "DOCU_1010");