/**
  * @see
  *     org.apache.velocity.runtime.resource.loader.ResourceLoader#getLastModified(org.apache.velocity.runtime.resource.Resource)
  */
 public long getLastModified(Resource resource) {
   String resourceName = resource.getName();
   IEntryInfo cacheInfo =
       TemplateUtils.getTemplateCacheInfo(
           templateEngine.getTemplateCacheInfoProvider(), resourceName);
   if (cacheInfo != null) {
     return cacheInfo.getLastModified();
   }
   return 0;
 }
 @Override
 public InputStream getResourceStream(String source) throws ResourceNotFoundException {
   IEntryInfo cacheInfo =
       TemplateUtils.getTemplateCacheInfo(templateEngine.getTemplateCacheInfoProvider(), source);
   if (cacheInfo != null) {
     InputStream inputStream = cacheInfo.getInputStream();
     if (inputStream != null) {
       return inputStream;
     }
   }
   throw new ResourceNotFoundException(
       "Cannot find input stream for the entry with source=" + source);
   //
   //
   // InputStream inputStream = getEntryInputStream(source);
   // if (inputStream == null) {
   // throw new ResourceNotFoundException(
   // "Cannot find input stream for the entry with source="
   // + source);
   // }
   // return inputStream;
 }