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;
}

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 ; }
extracts the type level mapping if any . makes sure that at least " / " is mapped and restricted to the given methods , if there any .
