final DirectAuthenticationHandlerMappingHolder holder = new DirectAuthenticationHandlerMappingHolder();
final OpenIdCredentialsAuthenticationHandler handler = new OpenIdCredentialsAuthenticationHandler();
handler.setTicketRegistry(this.ticketRegistry);
holder.setAuthenticationHandler(handler);
holder.setCredentialsToPrincipalResolver(new OpenIdCredentialsToPrincipalResolver());
this.authenticationManager.setCredentialsMapping(credentialsMapping);
credentialsMapping.put(OpenIdCredentials.class, holder);
final Map<String, UniqueTicketIdGenerator> generator = new HashMap<String, UniqueTicketIdGenerator>();