code: def to_import(self):
          # type: () -> ImportEndpoint
          
          # Properties
          properties = self.get_properties()
  
          # Framework UUID
          fw_uid = self.get_framework_uuid()
  
          # Endpoint name
          try:
              # From Pelix UID
              name = properties[pelix.remote.PROP_ENDPOINT_NAME]
          except KeyError:
              # Generated
              name = "{0}.{1}".format(fw_uid, self.get_service_id())
  
          # Configuration / kind
          configurations = self.get_configuration_types()
  
          # Interfaces
          specifications = self.get_interfaces()
  
          return ImportEndpoint(
              self.get_id(),
              fw_uid,
              configurations,
              name,
              specifications,
              properties,
          )
docs: Converts an EndpointDescription bean to an ImportEndpoint
  
          :return: An ImportEndpoint bean