code: def explode(self, escalations):
          
          # Now we explode all escalations (host_name, hostgroup_name) to escalations
          for escalation in self:
              properties = escalation.__class__.properties
              name = getattr(escalation, 'host_name', getattr(escalation, 'hostgroup_name', ''))
              creation_dict = {
                  'escalation_name':
                      'Generated-HE-%s-%s' % (name, escalation.uuid)
              }
              for prop in properties:
                  if hasattr(escalation, prop):
                      creation_dict[prop] = getattr(escalation, prop)
  
              escalations.add_escalation(Escalation(creation_dict))
docs: Create instance of Escalation for each HostEscalation object
  
          :param escalations: list of escalation, used to add new ones
          :type escalations: alignak.objects.escalation.Escalations
          :return: None