code: protected static void addScope(String name, String criteria) {
          ModelDelegate.addScope(modelClass().getName(), name, criteria);
      }
docs: Use in a static block of a model definotion to add a scope.
  
  @param name name of scope
  @param criteria SQL criteria for the scope filter