'Imports UIDs with domain prefixes
@param uid: the UID'

def import_uid(self, uid):

    domain = self.domain
    if ((not uid) or uid.startswith('urn:') or (not domain)):
        return uid
    elif ('/' in uid[1:(-1)]):
        (_domain, _uid) = uid.strip('/').split('/', 1)
        if (_domain == domain):
            return _uid
        else:
            return uid
    else:
        return uid
