code: @Programmatic
      public List<DocumentTemplate> findByType(final DocumentType documentType) {
          return repositoryService.allMatches(
                  new QueryDefault<>(DocumentTemplate.class,
                          "findByType",
                          "type", documentType));
      }
docs: Returns all templates for a type, ordered by application tenancy and date desc.