question: public boolean isAffiliate ( String protocol , String realm , String name ) throws AMConsoleException { boolean isAffiliate = false ; com . sun . identity . liberty . ws . meta . jaxb . AffiliationDescriptorType idff_ad = null ; com . sun . identity . saml2 . jaxb . metadata . AffiliationDescriptorType samlv2_sd = null ; try { if ( protocol . equals ( IDFF ) ) { IDFFMetaManager idffManager = new IDFFMetaManager ( null ) ; idff_ad = ( com . sun . identity . liberty . ws . meta . jaxb . AffiliationDescriptorType ) idffManager . getAffiliationDescriptor ( realm , name ) ; } else if ( protocol . equals ( SAMLV2 ) ) { SAML2MetaManager samlManager = new SAML2MetaManager ( ) ; samlv2_sd = ( com . sun . identity . saml2 . jaxb . metadata . AffiliationDescriptorType ) samlManager . getAffiliationDescriptor ( realm , name ) ; } if ( idff_ad != null || samlv2_sd != null ) { isAffiliate = true ; } } catch ( IDFFMetaException e ) { if ( debug . warningEnabled ( ) ) { debug . warning ( "EntityModelImpl.isAffiliate" , e ) ; } throw new AMConsoleException ( getErrorString ( e ) ) ; } catch ( SAML2MetaException s ) { if ( debug . warningEnabled ( ) ) { debug . warning ( "EntityModel.isAffiliate() - " + "Couldn't get SAMLMetaManager" ) ; } throw new AMConsoleException ( getErrorString ( s ) ) ; } return isAffiliate ; }
target:  Returns true if entity descriptor is an affiliate.