* @throws RepositoryException
*/
private String getFulltextStatement(QueryRootNode aqt)
throws RepositoryException {
final String[] stmt = new String[1];
aqt.accept(new TraversingQueryNodeVisitor() {
public Object visit(RelationQueryNode node, Object o)
throws RepositoryException {
if (stmt[0] == null
&& node.getOperation() == RelationQueryNode.OPERATION_SPELLCHECK) {
stmt[0] = node.getStringValue();