protected String getKeyInfo(AdvancedCache cache, Object key) {
DistributionManager dm = cache.getDistributionManager();
DataContainer container = cache.getDataContainer();
StringBuilder sb = new StringBuilder(256);
sb.append("Debug info for key ").append(cache.getName()).append(' ').append(key).append(": owners=");
for (Address owner : dm.locate(key)) {
sb.append(owner).append(", ");
}
DataLocality locality = dm.getLocality(key);
sb.append("local=").append(locality.isLocal()).append(", uncertain=").append(locality.isUncertain());
sb.append(", container.").append(key).append('=').append(toString(container.get(key)));