package com.l7tech.server.policy.variable;

import com.l7tech.gateway.common.Component;
import com.l7tech.gateway.common.audit.AuditRecord;
import com.l7tech.gateway.common.audit.SystemAuditRecord;

class k implements aq<AuditRecord> {
   @Override
   public ExpandVariables.Selector.Selection getFieldValue(AuditRecord var1, String var2) {
      if (var1 instanceof SystemAuditRecord var3) {
         Component var4 = Component.fromId(var3.getComponentId());
         return new ExpandVariables.Selector.Selection(var4 == null ? null : var4.getName());
      } else {
         return new ExpandVariables.Selector.Selection(null);
      }
   }
}
