    *
    * Related Tickets:
    *  - #7
+   *  - #49: ensure page and user exist
    *
    * @author Martin Giffy D'Souza
    * @created 29-Dec-2015

      end if;

    end if; -- l_page_id is null

    apex_application.g_instance := 1;
    apex_application.g_flow_id := p_app_id;

    l_page_id apex_application_pages.page_id%type := p_page_id;
    l_home_link apex_applications.home_link%type;
    l_url_arr apex_application_global.vc_arr2;

    l_count pls_integer;
  begin

    htp.init;
