class InitializationApiController implements InitializationApi {

    @Override
    @PreAuthorize("isAuthenticated()")
    public ResponseEntity<InitializationStatus> getInitializationStatus() {
        InitializationStatusDto initializationStatusDto =
                initializationService.getSecurityServerInitializationStatus();
        InitializationStatus initializationStatus = new InitializationStatus();
        initializationStatus.setIsAnchorImported(initializationStatusDto.isAnchorImported());
        initializationStatus.setIsServerCodeInitialized(initializationStatusDto.isServerCodeInitialized());
        initializationStatus.setIsServerOwnerInitialized(initializationStatusDto.isServerOwnerInitialized());
        initializationStatus.setSoftwareTokenInitStatus(TokenInitStatusMapping
                .map(initializationStatusDto.getSoftwareTokenInitStatusInfo()).get());
        return new ResponseEntity<>(initializationStatus, HttpStatus.OK);
    }

    @Autowired public  InitializationApiController(InitializationService initializationService);

}