private KeyScope readScopes ( final Document doc ) { final List < KeyScope > scopes = readScopes ( doc . getDocumentElement ( ) ) ; if ( scopes . size ( ) == 1 && scopes . get ( 0 ) . name == null ) { return scopes . get ( 0 ) ; } else { return new KeyScope ( "#root" , null , Collections . emptyMap ( ) , scopes ) ; } }
Read keys scopes in map .