code: synchronized void addRepository(String repository, File file) {
  
          // Note : There should be only one (of course), but I think we should
          // keep this a bit generic
  
          if (repository == null)
              return;
  
          if (log.isDebugEnabled())
              log.debug("addRepository(" + repository + ")");
  
          int i;
  
          // Add this repository to our internal list
          String[] result = new String[repositories.length + 1];
          for (i = 0; i < repositories.length; i++) {
              result[i] = repositories[i];
          }
          result[repositories.length] = repository;
          repositories = result;
  
          // Add the file to the list
          File[] result2 = new File[files.length + 1];
          for (i = 0; i < files.length; i++) {
              result2[i] = files[i];
          }
          result2[files.length] = file;
          files = result2;
  
      }
docs: Add a new repository to the set of places this ClassLoader can look for
  classes to be loaded.
  
  @param repository Name of a source of classes to be loaded, such as a
  directory pathname, a JAR file pathname, or a ZIP file pathname
  
  @exception IllegalArgumentException if the specified repository is
  invalid or does not exist