code: public int writeTemplateEntry(String template, Object entry) {
          int returnCode = htod.writeTemplateEntry(template, entry);
          if (returnCode == HTODDynacache.DISK_EXCEPTION) {
              stopOnError(this.htod.diskCacheException);
          }
          return returnCode;
      }
docs: Call this method to add a cache id for a specified template to the disk.
  
  @param template
  - template id.
  @param entry
  - cache id.