func (p StopListenProcessor) Process() {

	Import := types.GetImportById(p.StopListenMsg.ImportId, p.GetAgent())

	Import.StopListenToFunction(p.StopListenMsg.FunctionName)

	if !Import.GetApp().IsNode() {
		for _, n := range types.GetNodes(p.GetAgent()) {
			var smp SendMessageProcessor
			smp.App = n
			smp.Msg = p.StopListenMsg
			smp.GenericProcessor = processor.GetGenericProcessor()
			p.SpawnProcess(smp)

		}

	}

}
func (p UpdateImportProcessor) Process() {

	Import := types.GetImportById(p.UpdateImportMsg.ImportId, p.GetAgent())
	Import.UpdateTags(p.UpdateImportMsg.Tags)

	if !Import.GetApp().IsNode() {
		var smp SendMessageProcessor
		smp.App = Import.GetApp()
		smp.Msg = messages.ImportUpdatedMessage{Import.GetId(), Import.HasExporter()}
		smp.GenericProcessor = processor.GetGenericProcessor()
		p.SpawnProcess(smp)
		for _, node := range types.GetNodes(p.GetAgent()) {
			node.Lock()
			var smp SendMessageProcessor
			smp.App = node
			smp.Msg = p.UpdateImportMsg
			smp.GenericProcessor = processor.GetGenericProcessor()
			p.SpawnProcess(smp)
			node.Unlock()
		}
	}
}