} else if (value instanceof Props) {
return unflattedComplexType(clazz, (Props) value, manager);
} else {
throw new ProtocolException(
"A objectRef coded with a String or a Props is expected for param type '"
+ type + "'");
}
}
} else if (type instanceof ParameterizedType) {
ParameterizedType pType = (ParameterizedType) type;
if (((Class<?>) pType.getRawType()).isAssignableFrom(List.class)) {
return unflattenList(paramName, (List<?>) value,
pType.getActualTypeArguments()[0], manager);
}
}
throw new ProtocolException("Type '" + type + "' is not supported");
}