docs: def encode(self, entity):
          """
          Encode this
          :param entity:
          :return: cwr string
          """
          entity = self.expand_entity(entity)
          value = entity[self.name]
          result = self.format(value)
          return result