if (status.equals("error")) {
final String message = getResponseData();
throw new RemotingException(message);
} else if (status.equals("not-found")) {
final String message = getResponseData();
throw new ObjectNotFoundException(message);
} 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);