You can define whether a tree item should be rendered as a folder, with the help of the isFolder configuration option.