*
* @param handle
* @return
*/
private HTree getHashtableForHandle(String handle) {
HTree hashtable = metrics.get(handle);
if (null == hashtable) {
try {
long recid = recman.getNamedObject(handle);
if (recid != 0) {
hashtable = HTree.load(recman, recid);
} else {
hashtable = HTree.createInstance(recman);
recman.setNamedObject(handle, hashtable.getRecid());
}
metrics.put(handle, hashtable);
} catch (Throwable e) {
logger.log(Level.SEVERE, "Counld not get cached value for "
+ handle, e);