public function setLoggingPolicy($loggingPolicy)
 {
     $policy = LoggingPolicyFactory::getPolicyObject($loggingPolicy["Name"], $loggingPolicy["Parameters"]);
     $this->loggingConfig->setCurrentPolicy($policy);
     $this->loggingConfig->updatePolicy($policy);
     return $this->loggingConfig->getCurrentPolicy()->getPolicyName();
 }
 private function processPolicy($policyNode)
 {
     $policyName = null;
     $initParams = array();
     foreach ($policyNode->childNodes as $node) {
         switch ($node->nodeName) {
             case ORBConstants::POLICY_NAME:
                 $policyName = $node->nodeValue;
                 break;
             case ORBConstants::PARAMETER:
                 $name = $node->getElementsByTagName("name")->item(0)->nodeValue;
                 $initParams[$name] = $node->getElementsByTagName("value")->item(0)->nodeValue;
                 break;
         }
     }
     $this->loggingPolices[$policyName] = LoggingPolicyFactory::getPolicyObject($policyName, $initParams);
 }