code: public synchronized SelfPopulatingCache getAttributeCache(final AttributeImpl attr) throws NoCacheFoundException {
          if (attr.getName().equalsIgnoreCase(DeviceImpl.STATE_NAME)) {
              return stateCache.getCache();
          } else if (attr.getName().equalsIgnoreCase(DeviceImpl.STATUS_NAME)) {
              return statusCache.getCache();
          } else {
              return tryGetAttributeCache(attr);
          }
      }
docs: Get cache of an attribute
  
  @param attr
  the attribute
  @return the attribute cache
  @throws NoCacheFoundException if cache for the attribute is not found