class CertificateTreeValidationService {

    public void validate(long trustAnchorId) {
        Optional<TrustAnchor> maybeTrustAnchor = storage.readTx(tx -> trustAnchors.get(tx, Key.of(trustAnchorId)));
        if (maybeTrustAnchor.isPresent()) {
            final TrustAnchor trustAnchor = maybeTrustAnchor.get();
            Bench.mark0("validateTa " + trustAnchor.getName(), () -> validateTa(trustAnchor));
        } else {
            log.error("Couldn't find trust anchor {}", trustAnchorId);
        }
    }

    @Autowired public  CertificateTreeValidationService(RpkiObjects rpkiObjects,
                                            RpkiRepositories rpkiRepositories,
                                            Settings settings,
                                            ValidationScheduler validationScheduler,
                                            ValidationRuns validationRuns,
                                            TrustAnchors trustAnchors,
                                            ValidatedRpkiObjects validatedRpkiObjects,
                                            Storage storage,
                                            TrustAnchorState trustAnchorState,
                                            TrustAnchorMetricsService taMetricsService,
                                            ValidationConfig validationConfig);

}