*/
public @Nullable <T> T getSPI(@NotNull Class<T> type) {
if (type == HttpMetadataPublisher.class) {
// Overwrite http end point document provider.
if (metadataPublisher == null)
metadataPublisher = new JSONHttpMetadataPublisher(this);
return type.cast(metadataPublisher);
}
return null;
}