for (int i = 0; i < nl.getLength(); i++) {
String filterName = null;
String className = null;
Map params = new HashMap();
Node n = nl.item(i);
NamedNodeMap curAtt = n.getAttributes();
Node curNode = curAtt.getNamedItem("name");
if ( curNode != null ) {
filterName = curNode.getNodeValue();
for (Node child = n.getFirstChild();child != null;child = child.getNextSibling()) {
if (child.getNodeName().equals("class")) {
className = child.getFirstChild().getNodeValue();
}
if (child.getNodeName().equals("parameter")) {
String pnName = null;
String pvName = null;
NamedNodeMap childAtt = child.getAttributes();
Node pnNode = childAtt.getNamedItem("name");
if ( pnNode != null) {
pnName = pnNode.getNodeValue();
}
Node pvNode = childAtt.getNamedItem("value");
if ( pvNode != null) {
pvName = pvNode.getNodeValue();
}
if ( pnName != null && pvName != null ) {
params.put(pnName,pvName);