code: public static Optional<CommonProfile> isAuthenticationProfileAvailable(final J2EContext context) {
          val manager = new ProfileManager<>(context, context.getSessionStore());
          return manager.get(true);
      }
docs: Is authentication profile available?.
  
  @param context the context
  @return the optional user profile