s = s.substring(ALIAS_PREFIX.length());
Node n = recursiveFind((GroupNode) node, s);
if (n != null) {
return n;
}
throw new NotFoundException(s);
}
Node n = ((GroupNode) node).find(s);
if (n == null) {
throw new NotFoundException(s);
}
if (n instanceof GroupNode) {
return new CommandNode(n.getName(), n.getName());
}
return n;
} else {
throw new NotFoundException(s);
}
}