InMemorySessionTokenCache
.INSTANCE
.put(sessionToken, clientUserOptional.get());
} catch (IllegalArgumentException e) {
throw new AuthenticationException("Illegal argument in web form authenticator", e);
} catch (NullPointerException e) {
throw new AuthenticationException("Mandatory fields missing in web form authenticator", e);
} catch (IllegalStateException e) {
throw new AuthenticationException("Illegal state in web form authenticator", e);
}
return clientUserOptional;
}