public synchronized CacheObject searchObject(String name) {
    for (CacheObject mObject : getCache()) {
      if (mObject.getName().compareTo(name) == 0) {
        return mObject;
      }
    }

    return null;
  }
  public synchronized void printObjects() {
    logger.info("Logging metric objects ...");
    for (CacheObject mObject : getCache()) {
      logger.info("Name : " + mObject.getName());
      Iterator<Object> iob = mObject.getCacheObject().iterator();

      while (iob.hasNext()) {
        logger.info("Value : " + iob.next().toString());
      }
    }
  }