public void actionAddNewPermissions(CommandRequest req) throws Exception {
Map<String, String[]> params = req.getRequestObject().getParameterMap();
String roleName = params.get("roleName")[0];
Boolean invert = params.containsKey("invert");
if (StringUtils.isNotBlank(roleName)) {
Role role = getRolesManager().getRoleById(roleName);
//Calculate actions
Set paramNames = req.getParameterNames();
List grantedActions = new ArrayList();
List deniedActions = new ArrayList();
for (Iterator iterator = paramNames.iterator(); iterator.hasNext();) {