getUid for BaseQueryHandler