public static IntegrationEntityTreeModel createTreeModel(IntegrationProject project, EntityType type) {
ProjectTreeFragmentCreator c = new ProjectTreeFragmentCreator(project);
RootFolder folder = project.getRootFolder(type);
KongaTreeNode root = new RootFolderNode(folder);
c.createFragment(root, type);
root.sortChildren();
return new IntegrationEntityTreeModel(root);
}
private static final Comparator<IntegrationEntity> FOLDER_CONTENT_ORDER = new FolderContentSorter();