Use MappingLibrary.mapToValue rather than a for loop.