docs: public IdpExtendedMetadata generateExtendedMetadata() {
  
          IdpExtendedMetadata metadata;
  
          if (extendedMetadata != null) {
              metadata = extendedMetadata.clone();
          } else {
              metadata = new IdpExtendedMetadata();
          }
  
          String entityBaseURL = getEntityBaseURL();
          String entityAlias = getEntityAlias();
  
          if (isIncludeDiscovery()) {
              metadata.setIdpDiscoveryURL(getDiscoveryURL(entityBaseURL, entityAlias));
              metadata.setIdpDiscoveryResponseURL(getDiscoveryResponseURL(entityBaseURL, entityAlias));
          } else {
              metadata.setIdpDiscoveryURL(null);
              metadata.setIdpDiscoveryResponseURL(null);
          }
  
          metadata.setLocal(true);
          metadata.setAssertionTimeToLiveSeconds(getAssertionTimeToLiveSeconds());
          metadata.setAssertionsSigned(isAssertionsSigned());
          return metadata;
  
      }