def __init__(self, name, app_id, id=None, icon=None, startup=None, document_types=None, on_exit=None, factory=None):
    self.document_types = document_types
    self._documents = []
    super().__init__(name, app_id, id=id, icon=icon, startup=startup, on_exit=on_exit, factory=factory)
def __init__(self, name, app_id, id=None, icon=None, startup=None, document_types=None, on_exit=None, factory=None):
    self.document_types = document_types
    self._documents = []
    super().__init__(name, app_id, id=id, icon=icon, startup=startup, on_exit=on_exit, factory=factory)