@Override
public void removeAdminEntities(final Admin admin, final String admingroupname, final Collection<AdminEntity> adminentities) {
if (!admingroupname.equals(AdminGroup.DEFAULTGROUPNAME)) {
try {
final AdminGroupData agdl = AdminGroupData.findByGroupName(entityManager, admingroupname);
if (agdl == null) {
throw new FinderException("Could not find admin group " + admingroupname);
}
agdl.removeAdminEntities(entityManager, adminentities);
authTreeSession.signalForAuthorizationTreeUpdate();
final String msg = INTRES.getLocalizedMessage("authorization.adminremoved", admingroupname);
logSession.log(admin, LogConstants.INTERNALCAID, LogConstants.MODULE_RA, new java.util.Date(), null, null,
LogConstants.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES, msg);
} catch (Exception e) {