def METHOD_NAME(self, filename):
    '''
    Load sample keys and entries to current sample instance.
    '''
    if not os.path.isabs(filename):
        filename = os.path.join(qkit.cfg.get('datadir'),filename)
    with open(filename) as filehandle:
        self.__dict__ = json.METHOD_NAME(filehandle, cls = QkitJSONDecoder)
    s = Sample()
    s.__dict__ = self.__dict__['sample']
    self.__dict__['sample'] = s