if (targetClass.equals(String.class)
|| (paramAnnotationType.equals(CookieParam.class) && targetClass.equals(Cookie.class))) {
// no converter needed
} else {
targetClass = PrimitiveTypes.box(targetClass);
Member converter = null;
if (targetClass.isEnum()) {
converter = targetClass.getMethod("valueOf", String.class);
} else if (Date.class.isAssignableFrom(targetClass)) {
converter = TemporalConverters.class.getMethod("parseDate", String.class);