rootElem.setAttribute("type", gm.getLeafType().getName());
rootElem.setAttribute("displayName", GroupsManagerXML.getEntityName(ent.getLeafType(),
ent.getKey()));
rootElem.setAttribute("selected", "false");
// set user permissions for entity
IGroupsManagerPermissions gmp = sessionData.gmPermissions;
IAuthorizationPrincipal ap = sessionData.authPrincipal;
applyPermissions (rootElem, gm, gmp, ap);
} catch (Exception e) {
Utility.logMessage("ERROR", "EntityWrapper.getXml(): ERROR retrieving entity "
+ e, e);