BooleanFilter bf=new BooleanFilter();
NodeList nl = e.getChildNodes();
for(int i=0;i<nl.getLength();i++)
{
Node node = nl.item(i);
if(node.getNodeName().equals("Clause"))
{
Element clauseElem=(Element) node;
BooleanClause.Occur occurs=BooleanQueryBuilder.getOccursValue(clauseElem);
Element clauseFilter=DOMUtils.getFirstChildOrFail(clauseElem);
Filter f=factory.getFilter(clauseFilter);
bf.add(new FilterClause(f,occurs));
}
}
return bf;