@Override
    public void save(final CallContext ctx) {
        val webContext = ctx.webContext();
        val sessionStore = ctx.sessionStore();

        val requestedUrl = getRequestedUrl(webContext, sessionStore);
        if (WebContextHelper.isPost(webContext)) {
            LOGGER.debug("requestedUrl with data: {}", requestedUrl);
            val formPost = HttpActionHelper.buildFormPostContent(webContext);
            sessionStore.set(webContext, Pac4jConstants.REQUESTED_URL, new OkAction(formPost));
        } else {
            LOGGER.debug("requestedUrl: {}", requestedUrl);
            sessionStore.set(webContext, Pac4jConstants.REQUESTED_URL, requestedUrl);
        }
    }
@Test
    public void testSaveGet() {
        val context = MockWebContext.create().setFullRequestURL(PAC4J_URL);
        val sessionStore = new MockSessionStore();
        handler.save(new CallContext(context, sessionStore));
        val location = (String) sessionStore.get(context, Pac4jConstants.REQUESTED_URL).get();
        assertEquals(PAC4J_URL, location);
    }