// authenticate
AuthenticationManager authManager = null;
try {
authManager = (AuthenticationManager) this.manager.lookup(AuthenticationManager.ROLE);
UserHandler handler = authManager.login(handlerName,
par.getParameter("application", null),
authenticationParameters);
if (handler != null) {
// success
map = handler.getContext().getContextInfo();