code: @View(name = "by_name", map = "function(doc) { if(doc.name && doc.value) { emit(doc.name, doc) } }")
      public CouchDbSamlMetadataDocument findFirstByName(final String name) {
          val view = createQuery("by_name").key(name).limit(1);
          return db.queryView(view, CouchDbSamlMetadataDocument.class).stream().findFirst().orElse(null);
      }
docs: Find by name.
  @param name name to search for
  @return SAML metadata