Tuple toTuple(Map<String, Object> resultMap) {

		List<String> newNames = new ArrayList<>();
		List<Object> newValues = new ArrayList<>();
		for (String name : resultMap.keySet()) {
			newNames.add(name);
		}
		for (Object value : resultMap.values()) {
			newValues.add(value);
		}
		return new DefaultTuple(newNames, newValues, this.configurableConversionService);

	}
@return names and values as a {@code Map<String, Object>}
spring-xd-tuple/src/main/java/org/springframework/xd/tuple/DefaultTuple.java