Removed Try/Catch blocks from ResourceCategoryRepository. Rewrote the algorithm for refreshing tree views.