code: public void setRules(List rules) {
          Assert.notNull(rules);
          if (logger.isDebugEnabled()) {
              logger.debug("Configuring rules in source...");
          }
          getRuleContext(DEFAULT_CONTEXT_ID).clear();
          for (Iterator i = rules.iterator(); i.hasNext();) {
              addRules((Rules) i.next());
          }
      }
docs: Set the list of rules retrievable by this source, where each item in the list is a <code>Rules</code> object
  which maintains validation rules for a bean class.
  
  @param rules
  The list of rules.