def METHOD_NAME(self, message):
    if message.isType("configure1"):
        self.sendMessage(halMessage.HalMessage(m_type = "add to menu",
                                               data = {"item name" : "Z Stage",
                                                       "item data" : "z stage"}))
        self.sendMessage(halMessage.HalMessage(m_type = "get functionality",
                                               data = {"name" : self.configuration.get("z_stage_fn")}))
        self.sendMessage(halMessage.HalMessage(m_type = "initial parameters",
                                               data = {"parameters" : self.view.getParameters()}))            
    elif message.isType("new parameters"):
        p = message.getData()["parameters"]
        message.addResponse(halMessage.HalMessageResponse(source = self.module_name,
                                                          data = {"old parameters" : self.view.getParameters().copy()}))
        self.view.newParameters(p.get(self.module_name))
        message.addResponse(halMessage.HalMessageResponse(source = self.module_name,
                                                          data = {"new parameters" : self.view.getParameters()}))
    elif message.isType("show"):
        if (message.getData()["show"] == "z stage"):
            self.view.show()
    elif message.isType("start"):
        if message.getData()["show_gui"]:
            self.view.showIfVisible()