def METHOD_NAME(protocol='_pyme-pyro'):
    #TODO - cache connections per thread?
    with sqlite_ns_lock:
        try:
            ns = nsd[protocol]
        except KeyError:
            ns = SQLiteNS(protocol)
            nsd[protocol] = ns
            #time.sleep(1) #wait for the services to come up
    return ns