def METHOD_NAME(self):
    """Load HDU as appropriate class.
    TODO: this should probably go via an extensible registry.
    """
    from gammapy.irf import IRF_REGISTRY
    hdu_class = self.hdu_class
    filename = self.path()
    hdu = self.hdu_name
    if hdu_class == "events":
        from gammapy.data import EventList
        return EventList.read(filename, hdu=hdu)
    elif hdu_class == "gti":
        from gammapy.data.gti import GTI
        return GTI.read(filename, hdu=hdu)
    elif hdu_class == "map":
        from gammapy.maps import Map
        return Map.read(filename, hdu=hdu, format=self.format)
    elif hdu_class == "pointing":
        # FIXME: support loading the pointing table
        from gammapy.data import FixedPointingInfo
        return FixedPointingInfo.read(filename, hdu=hdu)
    else:
        cls = IRF_REGISTRY.get_cls(hdu_class)
        return cls.read(filename, hdu=hdu)