Collection<Object> convertedElements = collectionMapper.createEmptyCollection(rawClass);
for (Object element : (Iterable<?>) value) {
convertedElements.add(convert(element, targetElementType));
}
if (rawClass.equals(DomainObjectSet.class)) {
return new ImmutableDomainObjectSet(convertedElements);
} else {
return convertedElements;
}
}
if (Map.class.isAssignableFrom(rawClass)) {