*
* TODO modify CodeReflection to perform this validation and get the type of the collection if possible
* to be able to accept collections of primitive types
*/
if ( returnType.equals(Collection.class.getCanonicalName()) || returnType.equals(Set.class.getCanonicalName())) {
return new CollectionType(PrimitiveType.STRING,true);
}
error("Invalid substitute value, method "+method+"does not return a value of a valid type "+returnType);
return null;