def METHOD_NAME(self, element, tokenElements):
    """
    Given an element and a list of interesting token elements, updates the
    database if the token is expired, logs a message and adds
    """
    never = datetime.max
    for tokenElement in tokenElements:
        try:
            name = tokenElement["Name"]
            statusType = tokenElement["StatusType"]
            status = tokenElement["Status"]
            tokenOwner = tokenElement["TokenOwner"]
            tokenExpiration = tokenElement["TokenExpiration"]
        except KeyError as e:
            return S_ERROR(e)
        # If token has already expired
        if tokenExpiration < datetime.utcnow():
            _msg = '%s with statusType "%s" and owner %s EXPIRED'
            self.log.info(_msg % (name, statusType, tokenOwner))
            result = self.rsClient.addOrModifyStatusElement(
                element,
                "Status",
                name=name,
                statusType=statusType,
                tokenOwner=self.__rssToken,
                tokenExpiration=never,
            )
            if not result["OK"]:
                return result
        else:
            _msg = '%s with statusType "%s" and owner %s -> %s'
            self.log.info(_msg % (name, statusType, tokenOwner, tokenExpiration))
        if tokenOwner not in self.tokenDict:
            self.tokenDict[tokenOwner] = []
        self.tokenDict[tokenOwner].append([tokenOwner, element, name, statusType, status, tokenExpiration])
    return S_OK()