for (final XStreamConverter annotation : annotations) {
final Class<? extends ConverterMatcher> converterType = annotation.value();
final Converter converter = cacheConverter(
converterType, converterAnnotation != null ? type : null);
if (converter != null) {
if (converterAnnotation != null || converter.canConvert(type)) {
converterRegistry.registerConverter(converter, XStream.PRIORITY_NORMAL);
} else {
throw new InitializationException("Converter "
+ converterType.getName()
+ " cannot handle annotated class "