/**
  * @param BeneficiaryAdapterInterface
  * @param String The key to read the config from
  * @return Line a line
  */
 public static function createAdvisingRecordLine(BeneficiaryAdapterInterface $beneficiary, $config_key)
 {
     $line = new Line($config_key);
     $columns = ['record_type' => PresetStringColumnFactory::create('ADV', $label = 'record_type'), 'advice_recepient_id' => EmptyColumnFactory::create($label = 'advice_recepient_id'), 'action_flag' => EmptyColumnFactory::create($label = 'action_flag'), 'recipient_template_desc' => EmptyColumnFactory::create($label = 'recipient_template_desc'), 'user_id' => EmptyColumnFactory::create($label = 'user_id'), 'user_first_name' => EmptyColumnFactory::create($label = 'user_first_name'), 'user_last_name' => EmptyColumnFactory::create($label = 'user_last_name'), 'number_of_recipient' => PresetStringColumnFactory::create('1', $label = 'number_of_recipient'), 'recipient_item_no' => PresetStringColumnFactory::create('1', $label = 'recipient_item_no'), 'recipient_name' => VariableLengthStringColumnFactory::create($beneficiary->getFullname(), $max_length = 600, $label = 'recipient_name'), 'recipient_title' => VariableLengthStringColumnFactory::create($beneficiary->getRecipientTitleFlag(), 1, $label = 'recipient_title'), 'recipient_title_desc' => EmptyColumnFactory::create($beneficiary->getRecipientTitleDescription(), $label = 'recipient_title_desc'), 'action_code' => EmptyColumnFactory::create($label = 'action_code'), 'template_id' => EmptyColumnFactory::create($label = 'template_id'), 'template_status' => EmptyColumnFactory::create($label = 'template_status'), 'template_timetamp' => EmptyColumnFactory::create($label = 'template_timetamp'), 'advice_format' => PresetStringColumnFactory::create('F', $label = 'advice_format'), 'email_channel_select_flag' => PresetStringColumnFactory::create('Y', $label = 'email_channel_select_flag'), 'email_format' => PresetStringColumnFactory::create('1', $label = 'email_format'), 'email_address' => VariableLengthStringColumnFactory::create($beneficiary->getEmail(), $max_length = 70, $label = 'email_address'), 'alternate_email_address' => EmptyColumnFactory::create($label = 'alternate_email_address'), 'domicile_of_email_recipient' => ConfigurableStringColumnFactory::create($config = $line->config, 'domicile_of_email_recipient', $label = 'domicile_of_email_recipient')];
     $line->setColumns($columns);
     return $line;
 }