class SystemApiController implements SystemApi {

    @Override
    @PreAuthorize("hasAuthority('VIEW_ANCHOR')")
    public ResponseEntity<Anchor> getAnchor() {
        try {
            AnchorFile anchorFile = systemService.getAnchorFile();
            return new ResponseEntity<>(anchorConverter.convert(anchorFile), HttpStatus.OK);
        } catch (AnchorNotFoundException e) {
            throw new InternalServerErrorException(new ErrorDeviation(ANCHOR_FILE_NOT_FOUND));
        }
    }

    @Autowired public  SystemApiController(InternalTlsCertificateService internalTlsCertificateService,
            CertificateDetailsConverter certificateDetailsConverter, SystemService systemService,
            TimestampingServiceConverter timestampingServiceConverter, AnchorConverter anchorConverter,
            VersionService versionService, VersionConverter versionConverter, CsrFilenameCreator csrFilenameCreator,
            AuditDataHelper auditDataHelper);

}