} else if (status.equals("concurrency")) {
final String data = getResponseData();
// TODO create better exceptions (requires way to restore
// object/version)
if (data.startsWith("{")) {
throw new ConcurrencyException(data, (Throwable) null);
} else {
throw new ConcurrencyException(data, (Throwable) null);
}
} else if (!status.equals("ok")) {
throw new RemotingException("Invalid status in response: " + status);
}