docs: Result readValueSetSize(int type, Object id) {
          final String methodName = "readValueSetSize()";
          Result result = getFromResultPool();
          ValueSet answer = new ValueSet(4);
          HashtableOnDisk cache_instance = null;
          HashtableOnDisk vshtod = null;
          try {
              rwLock.readLock().lock();
              if (type == DEP_ID_DATA) {
                  cache_instance = dependency_cache;
              } else {
                  cache_instance = template_cache;
              }
              Long vsinstid = (Long) cache_instance.get(id);
              if (vsinstid != null) {
                  long vsinstance = vsinstid.longValue();
                  FileManager filemgr = cache_instance.getFileManager();
                  if (vsinstance != -1) {
                      vshtod = cache_instance.getInstance(filemgr, valueset_rehash, vsinstance, !HashtableOnDisk.HAS_CACHE_VALUE, this);
                      result.dataSize = vshtod.size();
                      vshtod.close();
                      vshtod = null;
                  } else {
                      result.dataSize = 0;
                  }
              }
          } catch (FileManagerException ex) {
              this.diskCacheException = ex;
              result.diskException = ex;
              result.returnCode = DISK_EXCEPTION;
          } catch (HashtableOnDiskException ex) {
              this.diskCacheException = ex;
              result.diskException = ex;
              result.returnCode = DISK_EXCEPTION;
          } catch (IOException ex) {
              this.diskCacheException = ex;
              result.diskException = ex;
              result.returnCode = DISK_EXCEPTION;
          } catch (Exception ex) {
              result.returnCode = OTHER_EXCEPTION;
              result.diskException = ex;
          } finally {
              if (result.returnCode != NO_EXCEPTION) {
                  if (tc.isDebugEnabled())
                      Tr.debug(tc, methodName, "cacheName=" + this.cacheName + "\n Exception: " + ExceptionUtility.getStackTrace(result.diskException));
              }
              if (result.returnCode == DISK_EXCEPTION || result.returnCode == OTHER_EXCEPTION) {
                  com.ibm.ws.ffdc.FFDCFilter.processException(result.diskException, "com.ibm.ws.cache.HTODDynacache.readValueSetSize", "1621", this);
              }
              try {
                  if (vshtod != null) {
                      vshtod.close();
                  }
              } catch (Exception ex) {
                  com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ibm.ws.cache.HTODDynacache.readValueSetSize", "1628", this);
              }
              rwLock.readLock().unlock();
          }
          return result;
      }