docs: def get_template_by_name(name,**kwargs):
      """
          Get a specific resource template, by name.
      """
      try:
          tmpl_i = db.DBSession.query(Template).filter(Template.name == name).options(joinedload_all('templatetypes.typeattrs.default_dataset.metadata')).one()
          return tmpl_i
      except NoResultFound:
          log.info("%s is not a valid identifier for a template",name)
          raise HydraError('Template "%s" not found'%name)