@ServiceActivator
	public Message<?> process(Message<?> message) {
		Object payload = message.getPayload();
		if (payload instanceof String) {
			try {
				payload = jsonToTupleTransformer.transformPayload(payload.toString());
			}
			catch (Exception e) {
				throw new MessageTransformationException(message, e.getMessage(), e);
			}
		}
		if (payload instanceof Tuple) {
			processTuple(computeMetricName(message), (Tuple) payload);
		}
		else {
			processPojo(computeMetricName(message), payload);
		}
		return message;
	}
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