question: Map < String , List < RequestMethod > > extractTypeLevelMappings ( final RequestMapping parentRequestMapping ) { final Map < String , List < RequestMethod > > parentUrls = new TreeMap < > ( ) ; List < String > urls = new ArrayList < > ( ) ; List < RequestMethod > methods = new ArrayList < > ( ) ; if ( parentRequestMapping != null ) { try { urls = concatValues ( parentRequestMapping . value ( ) , parentRequestMapping . path ( ) ) ; methods = Arrays . asList ( parentRequestMapping . method ( ) ) ; } catch ( IncompleteAnnotationException ex ) { } } final List < String > usedUrls = urls . isEmpty ( ) ? Arrays . asList ( "/" ) : urls ; for ( final String url : usedUrls ) { final String usedUrl = url . startsWith ( "/" ) ? url : "/" + url ; parentUrls . put ( usedUrl , methods ) ; } return parentUrls ; }
target:  Extracts the type level mapping if any. Makes sure that at least "/" is mapped and restricted to the given methods, if there any.