Constructor constructor = _proxyClass.getConstructor(PROXY_ARGS);
proxy = (Proxy) constructor.newInstance(new Object[]{delegate});
} catch (InvocationTargetException exception) {
if (exception.getTargetException() instanceof Exception) {
Exception nested = (Exception) exception.getTargetException();
throw new ExportException(nested.getMessage(), nested);
} else {
throw new ExportException(exception.getMessage(), exception);
}
} catch (Exception exception) {
throw new ExportException(exception.getMessage(), exception);
}
_proxies.put(uri, proxy);
return proxy;
}