code: public static synchronized void setResourcesDirectory(String directory)
      {
          if (directory == null)
          {
              resourcesDir = Constant.EMPTY_STRING + getSeparator();
          }
          else
          {
              resourcesDir = directory + getSeparator();
          }
          loader = Optional.empty();
      }
docs: Define resources directory. Root for all medias. Disable the load from JAR.
  
  @param directory The main resources directory (can be <code>null</code>).