* @throws Exception
*/
public int getByteCount( CompositeCache cache )
throws Exception
{
IMemoryCache memCache = cache.getMemoryCache();
Iterator iter = memCache.getIterator();
CountingOnlyOutputStream counter = new CountingOnlyOutputStream();
ObjectOutputStream out = new ObjectOutputStream( counter );
// non serializable objects will cause problems here