}
protected long addDLFolder(long parentFolderId, String folderName)
throws Exception {
DLFolder dlFolder = DLFolderLocalServiceUtil.fetchFolder(
groupId, parentFolderId, folderName);
if (dlFolder == null) {
dlFolder = DLFolderLocalServiceUtil.addFolder(
userId, groupId, groupId, false, parentFolderId, folderName,
null, false, serviceContext);
}
return dlFolder.getFolderId();
}