class CommunityCommitProcessFactory implements CommitProcessFactory {

    @Override
    public TransactionCommitProcess create( TransactionAppender appender, StorageEngine storageEngine,
            Config config )
    {
        if ( config.get( GraphDatabaseSettings.read_only ) )
        {
            return new ReadOnlyTransactionCommitProcess();
        }
        return new TransactionRepresentationCommitProcess( appender, storageEngine );
    }

}