changes to evaluateSimilarity in contextBroker