'Registers a method from an endpoint as remotely callable.'

def _register_call(self, endpoint, method, name=None):

    if (name is None):
        name = method.__name__
    key = ('%s.%s' % (endpoint, name))
    log.debug('Registering    call    handler    for    %s    (%s).', key, method)
    with self._lock:
        if (key in self._entries):
            raise KeyError(('A    handler    for    %s    has    already    been    regisered!' % endpoint))
        self._entries[key] = JabberRPCEntry(endpoint, method)
    return key
