public void marshalParams(XMLStructure parent, XMLCryptoContext context)
throws MarshalException {
super.marshalParams(parent, context);
XPathFilter2ParameterSpec xp =
(XPathFilter2ParameterSpec) getParameterSpec();
String prefix = DOMUtils.getNSPrefix(context, Transform.XPATH2);
String qname = (prefix == null || prefix.length() == 0)
? "xmlns" : "xmlns:" + prefix;
List list = xp.getXPathList();
for (int i = 0, size = list.size(); i < size; i++) {
XPathType xpathType = (XPathType) list.get(i);
Element elem = DOMUtils.createElement
(ownerDoc, "XPath", Transform.XPATH2, prefix);
elem.appendChild