* @return Node
* @throws ParseException
*/
public Node parse(InputStream inputStream) throws ParseException {
try {
final SimpleNode node = new SieveParser(inputStream, "UTF-8").start();
SieveValidationVisitor visitor = new SieveValidationVisitor();
node.jjtAccept(visitor, null);
return node;
} catch (ParseException ex) {
Log log = Logger.getLog();