question: public static Map parseAdvicesXML ( String advicesXML ) throws PolicyException { if ( debug . messageEnabled ( ) ) { debug . message ( "PolicyUtils.parseAdvicesXML():" + " entering, advicesXML= " + advicesXML ) ; } Map advices = null ; if ( advicesXML != null ) { Document document = XMLUtils . toDOMDocument ( advicesXML , debug ) ; if ( document != null ) { Node advicesNode = XMLUtils . getRootNode ( document , ADVICES_TAG_NAME ) ; if ( advicesNode != null ) { advices = XMLUtils . parseAttributeValuePairTags ( advicesNode ) ; } else { if ( debug . messageEnabled ( ) ) { debug . message ( "PolicyUtils.parseAdvicesXML():" + " advicesNode is null" ) ; } } } else { if ( debug . messageEnabled ( ) ) { debug . message ( "PolicyUtils.parseAdvicesXML():" + " document is null" ) ; } } } if ( debug . messageEnabled ( ) ) { debug . message ( "PolicyUtils.parseAdvicesXML():" + " returning, advices= " + advices ) ; } return advices ; }
target:  Parses an XML string representation of policy advices and  returns a Map of advices.  The keys of returned map would be advice name  keys. Each key is a String object. The values against each key is a  Set of String(s) of advice values