* {@inheritDoc}
*/
public String check(QueryRootNode aqt) throws IOException {
final Map<String, String> spellcheckInfo = new HashMap<String, String>();
try {
aqt.accept(new TraversingQueryNodeVisitor() {
public Object visit(RelationQueryNode node, Object data) throws RepositoryException {
if (!spellcheckInfo.containsKey("statement")
&& node.getOperation() == RelationQueryNode.OPERATION_SPELLCHECK) {
spellcheckInfo.put("statement", node.getStringValue());
} else if (!spellcheckInfo.containsKey("language") && node.getRelativePath() != null