private StoreConfiguration getStoreConfiguration(MavenProject rootModule) {
        StoreConfiguration.StoreConfigurationBuilder builder = StoreConfiguration.builder();
        if (store.getUri() == null) {
            File storeDirectory = OptionHelper.selectValue(new File(rootModule.getBuild().getDirectory(), STORE_DIRECTORY), this.storeDirectory);
            storeDirectory.getParentFile().mkdirs();
            URI uri = new File(storeDirectory, "/").toURI();
            builder.uri(uri);
        } else {
            builder.uri(store.getUri());
            builder.username(store.getUsername());
            builder.password(store.getPassword());
            builder.encryptionLevel(store.getEncryptionLevel());
        }
        builder.properties(store.getProperties());
        builder.embedded(getEmbeddedNeo4jConfiguration());
        StoreConfiguration storeConfiguration = builder.build();
        getLog().debug("Using store configuration " + storeConfiguration);
        return storeConfiguration;
    }
private StoreConfiguration getStoreConfiguration ( MavenProject rootModule ) { StoreConfiguration . StoreConfigurationBuilder builder = StoreConfiguration . builder ( ) ; if ( store . getUri ( ) == null ) { File storeDirectory = OptionHelper . selectValue ( new File ( rootModule . getBuild ( ) . getDirectory ( ) , STORE_DIRECTORY ) , this . storeDirectory ) ; storeDirectory . getParentFile ( ) . mkdirs ( ) ; URI uri = new File ( storeDirectory , "/" ) . toURI ( ) ; builder . uri ( uri ) ; } else { builder . uri ( store . getUri ( ) ) ; builder . username ( store . getUsername ( ) ) ; builder . password ( store . getPassword ( ) ) ; builder . encryptionLevel ( store . getEncryptionLevel ( ) ) ; } builder . properties ( store . getProperties ( ) ) ; builder . embedded ( getEmbeddedNeo4jConfiguration ( ) ) ; StoreConfiguration storeConfiguration = builder . build ( ) ; getLog ( ) . debug ( "Using store configuration " + storeConfiguration ) ; return storeConfiguration ; }
Creates the {@link StoreConfiguration}. This is a copy of the {@link #store}
enriched by default values and additional command line parameters.

@param rootModule
The root module.
@return The directory.