class LuceneAspspRepository implements AspspRepository {

    public Aspsp save(Aspsp aspsp) {
        IndexWriterConfig indexWriterConfig = new IndexWriterConfig();
        try (IndexWriter indexWriter = new IndexWriter(directory, indexWriterConfig)) {
            return save(indexWriter, aspsp);
        } catch (IOException e) {
            throw new RegistryIOException(e);
        }
    }

    public  LuceneAspspRepository(Directory directory);

}