class ConfigurationService {

  public void deleteConfigurationById(Long configurationId, User user) {
    Configuration configuration = configurationRepository.findByIdOrThrow(configurationId);
    logger.info(
        "Deleted configuration "
            + configuration.getName()
            + " (id: "
            + configuration.getId()
            + ")");
    activityService.createActivity(user, configuration, Action.DELETED);
    configurationRepository.delete(configuration);
  }

}