public <T> T createProxy(Class<T> clazz, URI baseUri)
{
// right now all proxies get the default interceptors
T proxy = ProxyFactory.create(clazz, baseUri, executor, providerFactory);
ResteasyClientProxy clientProxy = (ResteasyClientProxy) proxy;
clientProxy.applyClientInvokerModifier(new ClientInvokerModifier()
{
public void modify(ClientInvoker invoker)
{
applyInterceptors(invoker);
}