logSession.log(admin, admin.getCaId(), LogConstants.MODULE_SERVICES, new java.util.Date(), null, null, LogConstants.EVENT_INFO_SERVICESEDITED,
intres.getLocalizedMessage("services.serviceadded", name));
} else {
logSession.log(admin, admin.getCaId(), LogConstants.MODULE_SERVICES, new java.util.Date(), null, null, LogConstants.EVENT_ERROR_SERVICESEDITED,
intres.getLocalizedMessage("services.erroraddingservice", name));
throw new ServiceExistsException();
}
} else {
logSession.log(admin, admin.getCaId(), LogConstants.MODULE_SERVICES, new Date(), null, null, LogConstants.EVENT_ERROR_NOTAUTHORIZEDTORESOURCE,
intres.getLocalizedMessage("services.notauthorizedtoadd", name));
}