protected void processValue(String counterName, Object value) {
		if ((value instanceof Collection) || ObjectUtils.isArray(value)) {
			Collection<?> c = (value instanceof Collection) ? (Collection<?>) value
					: Arrays.asList(ObjectUtils.toObjectArray(value));
			for (Object val : c) {
				// TODO better conversion to a string
				fieldValueCounterRepository.increment(counterName, val.toString());
			}
		}
		else {
			fieldValueCounterRepository.increment(counterName, value.toString());
		}
	}
Counts the occurrence of values for a set of JavaBean properties or Tuple fields using a FieldValueCounterRepository.
Assumes a String payload is JSON and will convert it to a Tuple.

@author Mark Pollack
@author David Turanski
@author Mark Fisher
spring-xd-analytics/src/main/java/org/springframework/xd/analytics/metrics/integration/FieldValueCounterHandler.java