code: private void addToClassPool(final Path location) {
          if (!location.toFile().exists())
              throw new IllegalArgumentException("The location '" + location + "' does not exist!");
          try {
              ContextClassReader.addClassPath(location.toUri().toURL());
          } catch (Exception e) {
              throw new IllegalArgumentException("The location '" + location + "' could not be loaded to the class path!", e);
          }
      }
docs: Adds the location to the class pool.
  
  @param location The location of a jar file or a directory