public static String buildResponseUrl(String tenant,LogoutState logoutState){
  String retval=null;
  LogoutResponse samlResponse=logoutState.generateResponseForTenant(tenant,logoutState.getMessageSource(),logoutState.getLocale());
  if (samlResponse != null) {
    log.info("SAML SLO Response is " + samlResponse.toString());
    retval=logoutState.generateResponseUrlForTenant(samlResponse,tenant);
  }
  return retval;
}

public static String buildResponseUrl ( String tenant , LogoutState logoutState ) { String retval = null ; LogoutResponse samlResponse = logoutState . generateResponseForTenant ( tenant , logoutState . getMessageSource ( ) , logoutState . getLocale ( ) ) ; if ( samlResponse != null ) { log . info ( "SAML SLO Response is " + samlResponse . toString ( ) ) ; retval = logoutState . generateResponseUrlForTenant ( samlResponse , tenant ) ; } return retval ; }
helper method to generate logoutresponse redirect url
