def METHOD_NAME(self):
    self.ready_event = gevent.event.Event()
    self.energy_motor = None
    self.tunable = False
    self.moving = None
    self.default_en = None
    self.ctrl = None
    self.en_lims = []
    try:
        self.energy_motor = self.get_object_by_role("energy")
    except KeyError:
        logging.getLogger("HWR").warning("Energy: error initializing energy motor")
    try:
        self.default_en = self.get_property("default_energy")
    except KeyError:
        logging.getLogger("HWR").warning("Energy: no default energy")
    try:
        self.tunable = self.get_property("tunable_energy")
    except KeyError:
        logging.getLogger("HWR").warning("Energy: will set to fixed energy")
    try:
        self.ctrl = self.get_object_by_role("controller")
    except KeyError:
        logging.getLogger("HWR").info("No controller used")
    if self.energy_motor is not None:
        self.energy_motor.connect("valueChanged", self.energyPositionChanged)
        self.energy_motor.connect("stateChanged", self.energyStateChanged)