class ShardImporter {

    public boolean canImport(int height) {
        if (height == 0) {
            return true;
        } else if (blockchainConfig.getCurrentConfig().isShardingEnabled()) {
            Shard shard = shardDao.getLastShard();
            if (shard != null) {
                return shard.getShardState() == ShardState.FULL || shard.getShardState() == ShardState.CREATED_BY_ARCHIVE;
            } else {
                return true;
            }
        }
        return true;
    }

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

}