public static String getPartnerAppId(AbstractSSOAgent jossoAgent, HttpServletRequest hreq)
{
String requester = null;
// Try to obtain requester from ID of partnerApp
SSOPartnerAppConfig partnerAppConfig = jossoAgent.getPartnerAppConfig(hreq.getServerName(), hreq.getContextPath());
if (partnerAppConfig != null)
{
requester = partnerAppConfig.getId();
}
// Fallback to contextPath if previous failed
if (requester == null)
{