code: private static RepositorySystem newRepositorySystem() {
          return MavenRepositorySystemUtils.newServiceLocator()
                  .addService(RepositoryConnectorFactory.class, BasicRepositoryConnectorFactory.class)
                  .addService(TransporterFactory.class, FileTransporterFactory.class)
                  .addService(TransporterFactory.class, HttpTransporterFactory.class)
                  .getService(RepositorySystem.class);
      }
docs: Retrieves a new instance of standalone {@link org.eclipse.aether.RepositorySystem}.
  @return