'Exports UIDs with domain prefix
@param uid: the UID'

def export_uid(self, uid):

    if (not uid):
        return uid
    if (uid[:4] == 'urn:'):
        return uid
    else:
        domain = self.domain
        if (domain and ('/' not in uid[1:(-1)])):
            return ('%s/%s' % (domain, uid.strip('/')))
        else:
            return uid
