attributes = new HashMap<String, Object>(attributes);
attributes.put(AuthenticationProvider.ID,id);
for (AuthenticationManagerFactory factory : _factories)
{
AbstractAuthenticationManager manager = factory.createInstance(broker, attributes, recovering);
if (manager != null)
{
return manager;
}
}