code: private void paintRule(final Rule rule, final XmlStringBuilder xml) {
  		if (rule.getCondition() == null) {
  			throw new SystemException("Rule cannot be painted as it has no condition");
  		}
  
  		paintCondition(rule.getCondition(), xml);
  
  		for (Action action : rule.getOnTrue()) {
  			paintAction(action, "ui:onTrue", xml);
  		}
  
  		for (Action action : rule.getOnFalse()) {
  			paintAction(action, "ui:onFalse", xml);
  		}
  	}
docs: Paints a single rule.
  
  @param rule the rule to paint.
  @param xml the writer to send the output to