/**
* Pushes the state of a specific cache by reading the cache's data and putting in the cache store.
*/
protected void pushState(final Cache cache) throws Exception {
DataContainer dc = cache.getAdvancedCache().getDataContainer();
Set<Object> keys = dc.keySet();
for (Object k : keys) {
InternalCacheEntry entry = dc.get(k);
if (entry != null) {
MarshalledEntryImpl me = new MarshalledEntryImpl(entry.getKey(), entry.getValue(),
internalMetadata(entry), ctx.getMarshaller());