}
return pm;
}
protected RoleMetaInfo loadRole(String modelId, Role role) {
RoleMetaInfo roleMetaInfo = new RoleMetaInfo();
roleMetaInfo.setId(role.getId());
roleMetaInfo.setModelId(modelId);
String annotation = EcoreUtil.getAnnotation(role, UamPackage.eNS_URI, IPObjectConstant.DESCRIPTION_ATTR);
roleMetaInfo.setDescription(annotation);
roleMetaInfo.setName(role.getName());
for (Object perm : EMFUtil.getPermissions(role)) {
Permission permission = (Permission) perm;
IPermissionMetaInfo pm = loadPermission(modelId, permission);
roleMetaInfo.addPermission(pm);
}
return roleMetaInfo;
}