List<NavigationItem> navigationItems = navigationSection.getNavigationItems();
TreeNode[] treeNodes = new TreeNode[navigationItems.size()];
for (int i = 0, navigationItemsSize = navigationItems.size(); i < navigationItemsSize; i++) {
NavigationItem item = navigationItems.get(i);
final TreeNode treeNode = new EnhancedTreeNode(item.getName(), item.getTitle());
treeNode.setIcon(item.getIcon());
treeNode.setEnabled(item.isEnabled());
treeNodes[i] = treeNode;
}
TreeNode rootNode = new EnhancedTreeNode(navigationSection.getName(), navigationSection.getTitle(), treeNodes);
Tree tree = new Tree();
tree.setRoot(rootNode);
treeGrid.setData(tree);
return treeGrid;