throws NoSuitableStrategyFoundException {
IMetricCalculationStrategy strategy =
sRegisteredStrategies.get(new CompositeKey<String, Class<?>>(metricIdentifier, entity.getClass()));
if (strategy == null) {
throw new NoSuitableStrategyFoundException("Could not find a suitable " + metricIdentifier
+ "-strategy for " + entity.getClass());
}
return strategy.calculateValue(entity, session); // TODO storage-template method in an abstract class that
// implements IMetricCalculationStrategy?