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 = rolesManager.getRoleById(roleName);
//Calculate actions
Set<String> paramNames = req.getParameterNames();
List<String> grantedActions = new ArrayList<String>();
List<String> deniedActions = new ArrayList<String>();
for (String paramName : paramNames) {