if (metadata != null) {
metadata = metadata.setItemCount(resp.size());
}
long currentHash = _cluster.getHashOverState();
resp.setClusterHash(currentHash);
ClusterStatusMessage clusterStatus = (clusterHash == 0L || clusterHash != currentHash) ?
_cluster.asMessage() : null;
resp.setClusterStatus(clusterStatus);
final ObjectWriter w = useSmile ? _syncListSmileWriter : _syncListJsonWriter;
final String contentType = useSmile ? ContentType.SMILE.toString() : ContentType.JSON.toString();