class ShardImporter {

    public void importLastShard(int height) {
        if (height == 0) {
            genesisImporter.importGenesisJson(false);
        } else {
            Shard completedShard = shardDao.getLastCompletedOrArchivedShard();
            log.debug("Latest competed shard = {} for height = {}", completedShard, height);
            Long shardId = completedShard.getShardId();
            ShardNameHelper nameHelper = new ShardNameHelper();
            String shardFileId = nameHelper.getFullShardId(shardId, blockchainConfig.getChain().getChainId());
            log.debug("Latest competed shard shardFileId = {}", shardFileId);
            ShardPresentData shardPresentData = new ShardPresentData(shardId, shardFileId, List.of());
            importShard(shardPresentData, List.of("block", "transaction"));
        }
    }

    @Inject public  ShardImporter(ShardDao shardDao, BlockchainConfig blockchainConfig, GenesisImporter genesisImporter, Blockchain blockchain, DerivedTablesRegistry derivedTablesRegistry, CsvImporter csvImporter, Zip zipComponent, DataTagDao dataTagDao, DownloadableFilesManager downloadableFilesManager, AplAppStatus aplAppStatus);

}