HttpSecurityManagerBuilder loadAvailableAuthenticationSources() {
final ServiceLoader<AuthenticationSource> sources = ServiceLoader.load( AuthenticationSource.class );
if ( sources != null ) {
for ( final AuthenticationSource source : sources ) {
authProviders.add( new DefaultAuthenticationProvider( source ) );
if ( source instanceof RoleProvider ) {
roleProviders.add( (RoleProvider) source );
}
}
}