public CommandNode getNode(String nodename, Modes mode){
            Vector<CommandNode> nodes = getNodes(nodename, mode);
            CommandNode node = null;
            if(nodes.size() == 1 || (nodes.size()>0 && nodes.get(0).getName().compareTo(nodename)==0)){
                node = nodes.get(0);
            }
            return node;
        }