ApplicationLink appLink = getApplicationLink(resp, appId, appType);
try
{
final ApplicationLinkRequestFactory requestFactory = appLink.createAuthenticatedRequestFactory();
Request request = prepareRequest(req, methodType, finalPath, requestFactory);
request.execute(new ProxyResponseHandler(resp));
}
catch(ResponseException re)
{
final String finalUrl = appLink.getRpcUrl() + finalPath;
return handleProxyingException(finalUrl, req, resp, re);