// dynamic resolution
String firstProperty = properties.get(0);
switch (dataType) {
case TEXT:
return new TextPropertyResolver(firstProperty);
case NUMBER:
return new CalculationResolver(firstProperty, new SumCalculation());
}
return new FirstResourcePropertyResolver(firstProperty, dataType);