Type<Entry<Sk, Sv>> entryType = TypeFactory.resolveTypeOf(source.entrySet(), sourceType).getNestedType(0);
return (Set<D>) mapAsCollection(source.entrySet(), entryType, destinationType, destination, context);
}
public <Sk, Sv, D> D[] mapAsArray(D[] destination, Map<Sk, Sv> source, Type<? extends Map<Sk, Sv>> sourceType, Type<D> destinationType) {
MappingContext context = contextFactory.getContext();
try {
return mapAsArray(destination, source, sourceType, destinationType, context);
} finally {
contextFactory.release(context);
}