docs: def encode(self, entity):
          """
          Generate string of cwr format for all possible combinations of fields,
          accumulate and then elect the best. The best string it is who used most of all fields
          :param entity:
          :return:
          """
          possible_results = []
          entity_dict = self.get_entity_dict(entity)
          record_field_encoders = self.get_record_fields_encoders()
          for field_encoders in record_field_encoders:
              result = self.try_encode(field_encoders, entity_dict)
              if result:
                  possible_results.append({'result': result, 'len': len(field_encoders)})
          cwr = self.head(entity) + self._get_best_result(possible_results) + "\r\n"
          return cwr