code: protected final HtmlTemplate findTemplate(final List<HtmlTemplate> pHtmlTemplates, final Long pId) throws Exception {
      for (HtmlTemplate tmpl : pHtmlTemplates) {
        if (tmpl.getItsId().equals(pId)) {
          return tmpl;
        }
      }
      throw new Exception("Algorithm error/or template deleted: template not found for ID" + pId);
    }
docs: <p>Find Html Template with given ID.</p>
  @param pHtmlTemplates Html Templates
  @param pId ID
  @return template with given ID
  @throws Exception - if not found