code: public static Optional<NameID> getNameId(Response response, SamlNameIdFormat expectedFormat) {
          return getNameId(response, nameId -> nameId.getFormat().equals(expectedFormat.urn()));
      }
docs: Returns a {@link NameID} that its name format equals to the specified {@code expectedFormat},
  from the {@link Response}.