code: public synchronized SelfPopulatingCache getCommandCache(final CommandImpl cmd) {
          SelfPopulatingCache cache = null;
          if (cmd.getName().equalsIgnoreCase(DeviceImpl.STATE_NAME)) {
              cache = stateCache.getCache();
          } else if (cmd.getName().equalsIgnoreCase(DeviceImpl.STATUS_NAME)) {
              cache = statusCache.getCache();
          } else {
              CommandCache cmdCache = commandCacheMap.get(cmd);
              if (cmdCache == null) {
                  cmdCache = extTrigCommandCacheMap.get(cmd);
              }
              cache = cmdCache.getCache();
          }
          return cache;
      }
docs: Get cache of a command
  
  @param cmd
  The command
  @return The command cache