return createObjectWithPath(obj, filter, path(entityName, id, action, format), format);
}
public ERXRestRequestNode createObjectWithPath(Object obj, ERXKeyFilter filter, String path, ERXRestFormat format) throws HttpException, IOException {
ERXRestRequestNode node = ERXRestRequestNode.requestNodeWithObjectAndFilter(obj, filter, _context);
ERXStringBufferRestResponse response = new ERXStringBufferRestResponse();
format.writer().appendToResponse(node, response, format.delegate(), _context);
HttpClient client = httpClient();
PostMethod updateObjectMethod = new PostMethod(new ERXMutableURL(_baseURL).appendPath(path).toExternalForm());
updateObjectMethod.setRequestEntity(new StringRequestEntity(response.toString()));
client.executeMethod(updateObjectMethod);
return requestNodeWithMethod(updateObjectMethod, format);
}