else if (similarity == SimilarityMeasure.SIMILARITY_JENSEN_SHANNON)
return new JensenShannonMeasure(this.sim);
else if (similarity == SimilarityMeasure.SIMILARITY_COSINE)
return new CosineSimilarity(this.sim);
else if (similarity == SimilarityMeasure.SIMILARITY_EXTENDED_JACCARD)
return new ExtendedJaccardMeasure(this.sim);
else //(similarity == SimilarityMatchmaker.SIMILARITY_LOI)
return new ConstraintSimilarity(this.sim);
}