return (T) new UriInfoImpl(request);
} else if (clazz.isAssignableFrom(WebRequest.class)) {
//this also injects javax.ws.rs.core.Request
return (T) request;
} else if (clazz.isAssignableFrom(HttpHeaders.class)) {
return (T) new HttpHeadersImpl(request);
} else if (clazz.isAssignableFrom(SecurityContext.class)) {
throw new UnsupportedOperationException("Not supported yet.");
} else if (clazz.isAssignableFrom(Providers.class)) {
return (T) providers;
}