def METHOD_NAME(route: RouteDetails, incoming_state):
    # Create page object with event info inserted
    model_mod = importlib.import_module(route["modelPy"], __package__)
    Page = getattr(model_mod, "Page")
    page_obj = Page(incoming_state)
    # Pass the page object through the handle_event function
    entry_mod = importlib.import_module(route["entryPy"], __package__)
    if hasattr(entry_mod, "handle_init_state"):
        handle_init_state = getattr(entry_mod, "handle_init_state")
        handle_init_state(page_obj)
    # figure out which parts of the page_obj has been modified
    recorder = {}
    record_changes(page_obj, recorder)
    return recorde