src/main/java/com/feedzai/fos/impl/weka/WekaScorer.java
private WekaThreadSafeScorer quickSwitch(UUID modelId, WekaThreadSafeScorer newWekaThreadSafeScorer) {
        try { // quick switch - do not do anything inside for performance reasons!!
            reloadModelsLock.writeLock().lock();
            return wekaThreadSafeScorers.put(modelId, newWekaThreadSafeScorer);
        } finally {
            reloadModelsLock.writeLock().unlock();
        }
    }
private WekaThreadSafeScorer quickSwitch(UUID modelId, WekaThreadSafeScorer newWekaThreadSafeScorer) {
        try { // quick switch - do not do anything inside for performance reasons!!
            reloadModelsLock.writeLock().lock();
            return wekaThreadSafeScorers.put(modelId, newWekaThreadSafeScorer);
        } finally {
            reloadModelsLock.writeLock().unlock();
        }
    }
Switches the {@link com.feedzai.fos.impl.weka.WekaScorer} used for the model with the given UUID.

@param modelId                 The UUID of the model whose scorer to switch.
@param newWekaThreadSafeScorer The score to switch to.
@return The previous scorer associated to the given UUID.