class SystemService {

    public void deleteConfiguredTimestampingService(TspType tspTypeToDelete)
            throws TimestampingServiceNotFoundException {
        auditLog(tspTypeToDelete);

        List<TspType> configuredTimestampingServices = getConfiguredTimestampingServices();

        Optional<TspType> delete = configuredTimestampingServices.stream()
                .filter(tsp -> tspTypeToDelete.getName().equals(tsp.getName())
                        && tspTypeToDelete.getUrl().equals(tsp.getUrl()))
                .findFirst();

        if (!delete.isPresent()) {
            throw new TimestampingServiceNotFoundException(getExceptionMessage(tspTypeToDelete.getName(),
                    tspTypeToDelete.getUrl(), "not found")
            );
        }

        configuredTimestampingServices.remove(delete.get());
    }

    @Autowired public  SystemService(GlobalConfService globalConfService, ServerConfService serverConfService,
            AnchorRepository anchorRepository, ConfigurationVerifier configurationVerifier,
            CurrentSecurityServerId currentSecurityServerId,
            AuditDataHelper auditDataHelper);

}