public static Map<String, OptionalFailure<Object>> toResultMap(Map<String, Accumulator<?, ?>> accumulators) {
		Map<String, OptionalFailure<Object>> resultMap = new HashMap<>();
		for (Map.Entry<String, Accumulator<?, ?>> entry : accumulators.entrySet()) {
			resultMap.put(entry.getKey(), wrapUnchecked(entry.getKey(), () -> entry.getValue().getLocalValue()));
		}
		return resultMap;
	}
public static Map < String , OptionalFailure < Object > > toResultMap ( Map < String , Accumulator < ? , ? > > accumulators ) { Map < String , OptionalFailure < Object > > resultMap = new HashMap < > ( ) ; for ( Map . Entry < String , Accumulator < ? , ? > > entry : accumulators . entrySet ( ) ) { resultMap . put ( entry . getKey ( ) , wrapUnchecked ( entry . getKey ( ) , ( ) -> entry . getValue ( ) . getLocalValue ( ) ) ) ; } return resultMap ; }
Transform the Map with accumulators into a Map containing only the
results.