private IRoleInstanceService roleInstanceService;
@Override
public void executeRule(IRuleDefinition rule) throws RuleExecutionException {
Role role = (Role) rule.getParent();
Permission permission = (Permission) rule.getSource();
String appId = ((SecurityModel) permission.getEPackage()).getId();
List<IRoleInstanceMetaInfo> instances = roleInstanceService.getRoleInstances(appId, role.getId());
for (IRoleInstanceMetaInfo info : instances) {
info.removePermissionInstance(permission.getId());
try {
roleInstanceService.saveRoleInstance(info);
} catch (DataModelException e) {