}
EntityIdentifier ei = person.getEntityIdentifier();
IAuthorizationPrincipal ap = AuthorizationService.instance().newPrincipal(ei.getKey(), ei.getType());
if (!ap.hasPermission("org.jasig.portal.channels.groupsmanager.CGroupsManager", "VIEW", entityId)) {
throw new AuthorizationException("User " + person.getUserName() +
" does not have view permissions on entity " + entityId);
}
JsonEntityBean result = groupListHelper.getEntity(entityType, entityId, true);