xsb.addEmptyElement("selector-class", clsProp);
}
else if (getLanguage() != null) {
Properties scriptProp = new Properties();
scriptProp.setProperty("language", getLanguage());
xsb.push("script", scriptProp);
xsb.addCDATA(getExpression());
xsb.pop("script");
}
else {
throw new TestNGException("Invalid Method Selector: found neither class name nor language");