* @return object Corresponding cached object. Null if not found.
* @throws CacheException: thrown if the cache instance is found to be null
*/
public static Object getFromCache(JCS cache, String key) throws CacheException {
if (cache == null)
throw new CacheException("Null cache");
return cache.get(key);
}