code: public MirrorSelector mirrorSelector() {
  
          DefaultMirrorSelector dms = new DefaultMirrorSelector();
  
          // fill in mirrors
          for (Mirror mirror : settings.getMirrors()) {
              // Repository manager flag is set to false
              // Maven does not support specifying it in the settings.xml
              dms.add(mirror.getId(), mirror.getUrl(), mirror.getLayout(), false, mirror.getMirrorOf(),
                      mirror.getMirrorOfLayouts());
          }
  
          return dms;
      }
docs: Gets mirror selector
  
  @return the selector