response = new ObserveResponse(status, observed, ((ObserveRequest) request).master(), bucket,
content, request);
} else if (request instanceof AppendRequest) {
response = new AppendResponse(status, cas, bucket, content, request);
} else if (request instanceof PrependRequest) {
response = new PrependResponse(status, cas, bucket, content, request);
} else {
throw new IllegalStateException("Unhandled request/response pair: " + request.getClass() + "/"
+ msg.getClass());
}