def __init__(self, models, accountId, logger=None):
    self.models = models
    self.accountId = accountId
    if (logger is None):
        logger = logging.getLogger()
    self.logger = logger
    self.restore()
def __init__(self, models, accountId, logger=None):
    self.models = models
    self.accountId = accountId
    if (logger is None):
        logger = logging.getLogger()
    self.logger = logger
    self.restore()