code: public void write() {
      try {
        org.jxls.common.Context ctx = new org.jxls.common.Context();
        for (Map.Entry<String, Object> entry : context.getDatas().entrySet()) {
          ctx.putVar(entry.getKey(), entry.getValue());
        }
        JxlsHelper.getInstance().processTemplate(template.openStream(), outputStream, ctx);
      } catch (Exception e) {
        throw new RuntimeException(e.getMessage());
      }
    }
docs: write.