public static Map parseEnvParameters(Node pNode) throws PolicyException {
  Node node=null;
  Set nodeSet=XMLUtils.getChildNodes(pNode,ATTRIBUTE_VALUE_PAIR);
  if (nodeSet == null) {
    debug.error("parseEnvParameters: missing element " + ATTRIBUTE_VALUE_PAIR);
    String objs[]={ATTRIBUTE_VALUE_PAIR};
    throw new PolicyException(ResBundleUtils.rbName,"missing_element",objs,null);
  }
  HashMap envParams=new HashMap();
  Iterator nodes=nodeSet.iterator();
  while (nodes.hasNext()) {
    node=(Node)nodes.next();
    String attributeName=getAttributeName(node);
    if (attributeName == null) {
      debug.error("PolicyUtils.parseEnvParameters():" + " missing attribute name");
      String objs[]={ATTRIBUTE_NAME};
      throw new PolicyException(ResBundleUtils.rbName,"missing_attribute",objs,null);
    }
    Set values=getAttributeValues(node);
    if (values == null) {
      debug.error("PolicyUtils.parseEnvParameters():" + " missing attribute value");
      String objs[]={VALUE};
      throw new PolicyException(ResBundleUtils.rbName,"missing_attribute",objs,null);
    }
    envParams.put(attributeName,values);
  }
  return envParams;
}

public static Map parseEnvParameters ( Node pNode ) throws PolicyException { Node node = null ; Set nodeSet = XMLUtils . getChildNodes ( pNode , ATTRIBUTE_VALUE_PAIR ) ; if ( nodeSet == null ) { debug . error ( "parseEnvParameters: missing element " + ATTRIBUTE_VALUE_PAIR ) ; String objs [ ] = { ATTRIBUTE_VALUE_PAIR } ; throw new PolicyException ( ResBundleUtils . rbName , "missing_element" , objs , null ) ; } HashMap envParams = new HashMap ( ) ; Iterator nodes = nodeSet . iterator ( ) ; while ( nodes . hasNext ( ) ) { node = ( Node ) nodes . next ( ) ; String attributeName = getAttributeName ( node ) ; if ( attributeName == null ) { debug . error ( "PolicyUtils.parseEnvParameters():" + " missing attribute name" ) ; String objs [ ] = { ATTRIBUTE_NAME } ; throw new PolicyException ( ResBundleUtils . rbName , "missing_attribute" , objs , null ) ; } Set values = getAttributeValues ( node ) ; if ( values == null ) { debug . error ( "PolicyUtils.parseEnvParameters():" + " missing attribute value" ) ; String objs [ ] = { VALUE } ; throw new PolicyException ( ResBundleUtils . rbName , "missing_attribute" , objs , null ) ; } envParams . put ( attributeName , values ) ; } return envParams ; }
parses an xml node which represents a collection of the environment parameters and returns a map which contains these parameters .
