}
}
protected <T> T doSimpleXmlRequest(HttpMethod method, String relativeUri, Object postObject, Class<T> responseClass)
throws RestClientException {
HttpPayload payload = postObject != null ? HttpPayload.asXml(postObject) : null;
RestfulRequest<T> request = restfulClient.buildRequest(method, relativeUri, payload, responseClass);
return request.execute();
}