question: private Element createSingleLogOutForCastleAsSP ( String binding ) throws Exception { String entityID = idmClient . getEntityID ( tenantName ) ; String ssoLoc = convertToIPV6ShortForm ( entityID ) ; if ( ssoLoc == null ) { ssoLoc = tenantName ; } String sloLoc = ssoLoc . replaceAll ( "SAML2/Metadata" , SAMLNames . SP_SINGLELOGOUTSERVICE_PLACEHOLDER ) ; Element slosEle = createEndPoint ( SAMLNames . SLOS , binding , sloLoc , null ) ; return slosEle ; }
target:  Return SingleLogOutService Element for Castle as SP.