code: public static ResourceLoader getModuleResourceLoader(final String rootPath, final String loaderPath, final String loaderName) {
          if (Holder.JAR_FILE != null) {
              return new JarFileResourceLoader(loaderName, Holder.JAR_FILE, Holder.FILE_SYSTEM.getPath(rootPath, loaderPath).toString());
          }
          return ResourceLoaders.createFileResourceLoader(loaderPath, new File(rootPath));
      }
docs: Creates a new resource loader for the environment.
  
  <p>
  In an archive a {@link JarFileResourceLoader} is returned. Otherwise a file system based loader is returned.
  </p>
  
  @param rootPath   the root path to the module
  @param loaderPath the path to the module
  @param loaderName the module name
  @return a resource loader for the environment