public static Elements searchElements(Element ele, HtmlElementSingle detail, boolean throwException) {
		String key = detail.getKey();
		String value = detail.getValue();

		if (KEY_CLASS.equals(key)) {
			return ele.getElementsByClass(value);
		} else if (KEY_TAG.equals(key)) {
			return ele.getElementsByTag(value);
		} else if (KEY_ATTRIBUTE.equals(key)) {
			return ele.getElementsByAttribute(value);
		} else if (throwException) {
			throw new IllegalArgumentException("unknown key:" + key);
		} else {
			return null;
		}
	}