def METHOD_NAME(self):
    """Finalizes options."""
    if self.repository is None:
        self.repository = self.DEFAULT_REPOSITORY
    if self.realm is None:
        self.realm = self.DEFAULT_REALM