navObjCache = JCS.getInstance(Globals.METSOBJ_CACHE);
navObj = (JSONObject)navObjCache.get(Globals.METSOBJ_CACHE_KEY + oid);
} catch (CacheException cex) {
log.error("Corrupted Cache[" + Globals.METSOBJ_CACHE
+ "]: " + cex.getMessage());
log.error(new ExceptionBean(cex).getStack());
}
if (navObj == null || forceUpdate ||
parseTime((String)navObj.get("timestamp")) < child.getConfig().getDataSource().getTimestamp(oid)) {
navObj = child.getJSONObject(oid);
if (navObjCache != null) {
try {
navObjCache.put(Globals.METSOBJ_CACHE_KEY + oid, navObj);
} catch (CacheException cex) {
log.error("Corrupted Cache[" + Globals.METSOBJ_CACHE
+ "]: " + cex.getMessage());
log.error(new ExceptionBean(cex).getStack());
}
}
}
return navObj;
}