ThreadLocalizedContext tlContext, boolean leaveEncoded)
throws IllegalPathParamTypeException {
super(defaultValue, convToCl, convToGen, tlContext, leaveEncoded);
if ((this.collType != null)
&& (!this.convertTo.equals(PathSegment.class))) {
throw new IllegalPathParamTypeException(
"The type of a @PathParam annotated parameter etc. must not be a collection type or array, if the type parameter is not PathSegment");
}
this.pathParam = pathParam;
}