public void addAccessRules(final Admin admin, final String admingroupname, final Collection<AccessRule> accessrules) {
if (!admingroupname.equals(AdminGroup.DEFAULTGROUPNAME)) {
try {
final AdminGroupData agd = AdminGroupData.findByGroupName(entityManager, admingroupname);
if (agd == null) {
throw new FinderException("Could not find admin group " + admingroupname);
}
agd.addAccessRules(entityManager, accessrules);
authTreeSession.signalForAuthorizationTreeUpdate();
final String msg = INTRES.getLocalizedMessage("authorization.accessrulesadded", admingroupname);
logSession.log(admin, LogConstants.INTERNALCAID, LogConstants.MODULE_RA, new java.util.Date(), null, null,