def avp_by_name(name)
      code, _type, vendor = Internals::AVPNames.get(name)
      avp_by_code(code, vendor)
    end
def avp_by_name(name)
      code, _type, vendor = Internals::AVPNames.get(name)
      avp_by_code(code, vendor)
    end
@!group AVP retrieval
 Returns the first AVP with the given name. Only covers "top-level"
 AVPs - it won't look inside Grouped AVPs.

 Also available as [], e.g. message['Result-Code']

 @param name [String] The AVP name, either one predefined in
   {Constants::AVAILABLE_AVPS} or user-defined with {AVP.define}

 @return [AVP] if there is an AVP with that name
 @return [nil] if there is not an AVP with that name