code: public static void addScope(String className, String scope, String criteria) {
  
          if(!scopes.containsKey(className)){
              scopes.put(className, new HashMap<>());
          }
          scopes.get(className).put(scope, criteria);
      }
docs: has to be public because it is called from models.