code: protected CommonProfile getAuthenticatedProfile(final HttpServletRequest request, final HttpServletResponse response) {
          val context = new J2EContext(request, response, getConfigurationContext().getSessionStore());
          val manager = new ProfileManager<>(context, context.getSessionStore());
          val profile = manager.get(true);
  
          if (profile.isEmpty()) {
              throw new IllegalArgumentException("Unable to determine the user profile from the context");
          }
          return profile.get();
      }
docs: Gets authenticated profile.
  
  @param request  the request
  @param response the response
  @return the authenticated profile