question: public String execute ( Locale locale , Map params ) throws WorkflowException { String realm = getString ( params , ParameterKeys . P_REALM ) ; if ( realm == null ) { String extendedMetaData = getString ( params , ParameterKeys . P_EXTENDED_DATA ) ; if ( extendedMetaData != null ) { realm = getRealmFromExtData ( getContent ( extendedMetaData , locale ) ) ; } } if ( realm == null ) { throw new WorkflowException ( "invalid-metaalias-slash" , null ) ; } try { CircleOfTrustManager mgr = new CircleOfTrustManager ( ) ; Set cots = mgr . getAllCirclesOfTrust ( realm ) ; StringBuffer buff = new StringBuffer ( ) ; if ( ( cots != null ) && ! cots . isEmpty ( ) ) { boolean first = true ; for ( Iterator i = cots . iterator ( ) ; i . hasNext ( ) ; ) { String c = ( String ) i . next ( ) ; if ( first ) { first = false ; } else { buff . append ( "|" ) ; } try { buff . append ( StringUtils . encodeURIComponent ( c , "UTF-8" ) ) ; } catch ( UnsupportedEncodingException e ) { buff . append ( c ) ; } } } return buff . toString ( ) ; } catch ( COTException e ) { throw new WorkflowException ( "invalid-extended-data-cot" , null ) ; } }
target:  Returns Circle of trust of a given realm or extended metadata.