code: public IResourceIterator load(String archiveName) throws Exception {
          File file = new File(archiveName);
          
          if (file.isDirectory()) {
              return new DirectoryIterator(file);
          }
          
          return iteratorClass.getConstructor(String.class).newInstance(archiveName);
      }
docs: Returns a resource iterator instance for the given archive name.
  
  @param archiveName Name of the archive file.
  @return A resource iterator instance.
  @throws Exception Unspecified exception.