code: public void forAllReferenceDefinitions(String template, Properties attributes) throws XDocletException
      {
          for (Iterator it = _curClassDef.getReferences(); it.hasNext(); )
          {
              _curReferenceDef = (ReferenceDescriptorDef)it.next();
              // first we check whether it is an inherited anonymous reference
              if (_curReferenceDef.isAnonymous() && (_curReferenceDef.getOwner() != _curClassDef))
              {
                  continue;
              }
              if (!isFeatureIgnored(LEVEL_REFERENCE) &&
                  !_curReferenceDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_IGNORE, false))
              {
                  generate(template);
              }
          }
          _curReferenceDef = null;
      }
docs: Processes the template for all reference definitions of the current class definition.
  
  @param template              The template
  @param attributes            The attributes of the tag
  @exception XDocletException  if an error occurs
  @doc.tag                     type="block"