@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;
 }