private void sendCommand(String s)
        throws NoCommandException, NoSuchCommandableException
    {
        int i = s.indexOf(' ');
        if(i == -1)
            throw new NoCommandException();
        if(i == s.length())
            throw new NoCommandException();
        String s1 = s.substring(1, i);
        ShellCommandable shellcommandable = null;
        Iterator iterator = BotProcesses.getRegistryIterator();
        if(iterator.hasNext())
            while(iterator.hasNext()) 
                try
                {
                    ShellCommandable shellcommandable1 = (ShellCommandable)iterator.next();
                    if(s1.equals(shellcommandable1.getShellID()))
                        shellcommandable = shellcommandable1;
                }
                catch(ClassCastException classcastexception) { }
        if(shellcommandable == null)
        {
            throw new NoSuchCommandableException();
        } else
        {
            shellcommandable.processShellCommand(s.substring(i + 1));
            return;
        }
    }