public <T> T objectWithPath(String path) throws HttpException, IOException {
HttpClient client = httpClient();
GetMethod fetchObjectMethod = new GetMethod(new ERXMutableURL(_baseURL).appendPath(path).toExternalForm());
client.executeMethod(fetchObjectMethod);
ERXRestRequestNode node = requestNodeWithMethod(fetchObjectMethod);
String type = node.type();
return (T) _objectWithRequestNode(node, type);
}
public ERXRestRequestNode update(Object obj, ERXKeyFilter filter, String entityName, String id, String action, ERXRestFormat format) throws HttpException, IOException {
return updateObjectWithPath(obj, filter, path(entityName, id, action, format), format);