* @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(
commandManager, testManager, comparatorManager);
node.jjtAccept(visitor, null);
return node;
} catch (ParseException ex) {
if (log.isErrorEnabled())
log.error("Parse failed. Reason: " + ex.getMessage());
if (log.isDebugEnabled())