code: @Override
      public InputStream render(Context context, Result result) throws RenderableException {
          byte[] bytes;
  
          // We have a result, charset have to be provided
          if (result != null) {
              if (result.getCharset() == null) {
                  // No charset provided, use default encoding (UTF-8).
                  result.with(Charsets.UTF_8);
              }
              bytes = rendered.getBytes(result.getCharset());
          } else {
              //No Result, use the default encoding
              bytes = rendered.getBytes(Charsets.UTF_8);
          }
  
          return new ByteArrayInputStream(bytes);
      }
docs: Retrieves the content.
  
  @param context the HTTP context
  @param result  the result having built this renderable object
  @return an input stream on the contained String.
  @throws RenderableException should not happen