274275276277278279280281282283284
throw new IllegalArgumentException("Tried to add role[" + roleId + "] to subject[" + subjectId + "], but role was not found"); } role.addSubject(subjectToModify); if (isLdap) { role.addLdapSubject(subjectToModify); } } } }