protected Map<String,String> extractFieldNameMappingFrom(List<String> fieldNameMappingPairs){

		Assert.notNull(fieldNameMappingPairs, "fieldNameMappingPairs");

		Map<String,String> mapping = new LinkedHashMap<String,String>();

		for (String fieldNameMapping : fieldNameMappingPairs) {

			String fieldNameFrom = fieldNameMapping;
			String fieldNameTo = fieldNameMapping;

			if (fieldNameMapping.contains(fieldMappingEntrySplitToken)) {
				String[] fromTo = fieldNameMapping.split(fieldMappingEntrySplitToken);
				fieldNameFrom = fromTo[0];
				fieldNameTo = fromTo[1];
			}

			mapping.put(fieldNameFrom,fieldNameTo);
		}

		return mapping;
	}
Transforms the list of field name mapping pairs to a {@link java.util.Map} from a name to a new name.

@param fieldNameMappingPairs list of field name mapping pairs
@return map of field names to values
spring-xd-analytics-ml/src/main/java/org/springframework/xd/analytics/ml/AbstractFieldMappingAwareDataMapper.java