* @param resources
* @return
*/
public static TreeNode[] buildNodes(List<Resource> resources, List<Resource> lockedData, TreeGrid treeGrid) {
if (treeGrid == null || treeGrid.getTree() == null) {
throw new ViewChangedException(ResourceTopView.VIEW_ID.getName() + "/*");
}
List<ResourceTreeNode> resourceNodes = new ArrayList<ResourceTreeNode>(resources.size());
for (Resource resource : resources) {
ResourceTreeNode node = new ResourceTreeNode(resource, lockedData.contains(resource));