*/
private void addFolderBuildingBlocks(MergeSource BCNodesContainer, CourseNode courseNode) {
for (int i = 0; i < courseNode.getChildCount(); i++) {
CourseNode child = (CourseNode) courseNode.getChildAt(i);
if (child instanceof BCCourseNode) {
BCCourseNode bcNode = (BCCourseNode) child;
// add folder not to merge source. Use name and node id to have unique name
String path = BCCourseNode.getFoldernodePathRelToFolderBase(getCourseEnvironment(), bcNode);
OlatRootFolderImpl rootFolder = new OlatRootFolderImpl(path, null);
String folderName = bcNode.getShortTitle() + " (" + bcNode.getIdent() + ")";
OlatNamedContainerImpl BCFolder = new OlatNamedContainerImpl(folderName, rootFolder);
BCNodesContainer.addContainer(BCFolder);
}
// recursion for all childrenØ
addFolderBuildingBlocks(BCNodesContainer, child);