}
private void configureMeasurements(ConfigurationConfigurableCollabReview collabReview, ConfigurationData config) throws Exception {
assert collabReview != null;
assert config != null;
MeasurementsManager measurementsManager = new MeasurementsManager();
measurementsManager.setCollabReview(collabReview);
measurementsManager.setArtifactResponsibility(((ArtifactResponsibilityFactory) getFactory(config.getSubElement("artifactResponsibilityFactoryConfiguration"))).create());
ArtifactQualityAssessor artifactQualityAssessor = ((ArtifactQualityAssessorFactory) getFactory(config.getSubElement("artifactQualityAssessor"))).create();
artifactQualityAssessor.setRepository(collabReview.getRepository());
measurementsManager.setArtifactQualityAssessor(artifactQualityAssessor);
measurementsManager.setArtifactWeight(((ArtifactWeightFactory) getFactory(config.getSubElement("artifactWeightFactoryConfiguration"))).create());
measurementsManager.setArtifactSimilarity(((ArtifactSimilarityFactory) getFactory(config.getSubElement("artifactSimilarityFactoryConfiguration"))).create());
collabReview.setMeasurementsManager(measurementsManager);
try {
collabReview.setBestArtifactMetric(((BestArtifactMetricFactory) getFactory(config.getSubElement("bestArtifactMetric"))).create());
} catch (NullPointerException npe) {
logger.warn("No <bestArtifactMetric/> defined in configuration");