R requestBody = requestData.hasRequestBody()
? (R) requestData.getRequestBody().getSimpleBody() : null;
return createRequest(requestData.getMethod(), requestData.getHeaders(),
requestData.getUrlParams(), resourceId, requestBody, requestData.isInlined());
} catch (IOException e) {
throw new WebServiceSystemException(e);
} catch (JsonParseException e) {
// Not a Web service request
throw new WebServiceSystemException(e);
}
}