question: public static Map < String , Set < String > > convertToAttributes ( NameIDInfo info , NameIDInfoKey infoKey ) throws SAML2Exception { Map < String , Set < String > > ret = new HashMap < > ( ) ; if ( infoKey == null ) { infoKey = new NameIDInfoKey ( info . getNameIDValue ( ) , info . getHostEntityID ( ) , info . getRemoteEntityID ( ) ) ; } ret . put ( getNameIDInfoAttribute ( ) , Collections . singleton ( info . toValueString ( ) ) ) ; ret . put ( getNameIDInfoKeyAttribute ( ) , Collections . singleton ( infoKey . toValueString ( ) ) ) ; return ret ; }
target:  Converts the provided NameIDInfo and NameIDInfoKey to a Map&lt;String, Set&lt;String&gt;&gt; structure.