foundResource.setId(privilege.getId());
foundResource.setName(privilege.getName());
response.addData(foundResource);
}
ParentNode root = null;
ParentNode parent = null;
// iterate through each role and add to tree
for (Role role : parentList) {
ParentNode newParent = new ParentNode();
newParent.setId(role.getRoleId());
newParent.setName(role.getName());
// if we dont yet have a root, we are on first item
if (root == null) {
root = newParent;
parent = root;