':type senderKeyName: SenderKeyName'

def loadSenderKey(self, senderKeyName):

    q = 'SELECT    record    FROM    sender_keys    WHERE    group_id    =    ?    and    sender_id    =    ?'
    cursor = self.dbConn.cursor()
    cursor.execute(q, (senderKeyName.getGroupId(), senderKeyName.getSender().getName()))
    result = cursor.fetchone()
    if (not result):
        return SenderKeyRecord()
    return SenderKeyRecord(serialized=result[0])
