code: public static PoliciesCache fromDir(File rootDir, final Set<Attribute> forcedContext) {
          return fromSourceProvider(YamlProvider.getDirProvider(rootDir),forcedContext);
      }
docs: Create a cache from a directory source
  @param rootDir base director
  @return cache