return new BugCodeMatcher(element.valueOf("@name"));
return new BugMatcher(element.valueOf("@name"), "");
	private Matcher getMatcher(Element element) throws FilterException {		// These will be either BugCode, Priority, Class, Method, Field, or Or elements.		String name = element.getName();		if (name.equals("BugCode")) {			return new BugCodeMatcher(element.valueOf("@name"));		} else if (name.equals("BugPattern")) {			return new BugPatternMatcher(element.valueOf("@name"));		} else if (name.equals("Priority")) {			return new PriorityMatcher(element.valueOf("@value"));		} else if (name.equals("Class")) {			Attribute nameAttr = element.attribute("name");						if (nameAttr == null)				throw new FilterException("Missing name attribute in Class element");						return new ClassMatcher(nameAttr.getValue());		} else if (name.equals("Method")) {			Attribute nameAttr = element.attribute("name");			Attribute paramsAttr = element.attribute("params");			Attribute returnsAttr = element.attribute("returns");			if (nameAttr == null)				throw new FilterException("Missing name attribute in Method element");			if ((paramsAttr != null || returnsAttr != null) && (paramsAttr == null || returnsAttr == null))				throw new FilterException("Method element must have both params and returns attributes if either is used");			if (paramsAttr == null)				return new MethodMatcher(nameAttr.getValue());			else				return new MethodMatcher(nameAttr.getValue(), paramsAttr.getValue(), returnsAttr.getValue());		} else if (name.equals("Field")) {			Attribute nameAttr = element.attribute("name");						if (nameAttr == null)				throw new FilterException("Missing name attribute in Field element");						return new FieldMatcher(nameAttr.getValue());		} else if (name.equals("Or")) {			OrMatcher orMatcher = new OrMatcher();			Iterator<Element> i = element.elementIterator();			while (i.hasNext()) {				orMatcher.addChild(getMatcher(i.next()));			}			return orMatcher;		} else			throw new FilterException("Unknown element: " + name);	}