question: private PolicyDecision mergePolicyDecisions ( PolicyDecision pd1 , PolicyDecision pd2 , String serviceName ) { Map actionDecisions1 = pd1 . getActionDecisions ( ) ; Set actions = new HashSet ( ) ; actions . addAll ( actionDecisions1 . keySet ( ) ) ; Iterator iter = actions . iterator ( ) ; while ( iter . hasNext ( ) ) { String action = ( String ) iter . next ( ) ; ActionDecision ad1 = ( ActionDecision ) actionDecisions1 . get ( action ) ; pd2 . addActionDecision ( ad1 , policyProperties . getTrueValue ( serviceName , action ) , policyProperties . getFalseValue ( serviceName , action ) ) ; } Map mergedReponseAttrsMap = new HashMap ( ) ; PolicyUtils . appendMapToMap ( pd1 . getResponseAttributes ( ) , mergedReponseAttrsMap ) ; PolicyUtils . appendMapToMap ( pd2 . getResponseAttributes ( ) , mergedReponseAttrsMap ) ; pd2 . setResponseAttributes ( mergedReponseAttrsMap ) ; return pd2 ; }
target:  Merges two policy decisions