'Perform actual command dispatch.'

def dispatch(self, commandName, *args):

    def _getMethodName(command):
        return ('%s_%s' % (self.prefix, command))
    def _getMethod(name):
        return getattr(self, _getMethodName(name), None)
    method = _getMethod(commandName)
    if (method is not None):
        return method(*args)
    method = _getMethod('unknown')
    if (method is None):
        raise UnhandledCommand(('No    handler    for    %r    could    be    found' % (_getMethodName(commandName),)))
    return method(commandName, *args)
