code: public static JavaType findRootType(JavaType contentType) {
  
  		if (contentType.hasGenericTypes()) {
  			return findRootType(contentType.containedType(0));
  		} else {
  			return contentType;
  		}
  	}
docs: Navigate a chain of parametric types (e.g. Resources&lt;Resource&lt;String&gt;&gt;) until you find the innermost type (String).
  
  @param contentType
  @return