code: public void ifHasProperty(String template, Properties attributes) throws XDocletException
      {
          String value = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), attributes.getProperty(ATTRIBUTE_NAME));
  
          if (value != null)
          {
              generate(template);
          }
      }
docs: Determines whether the current object on the specified level has a specific property, and if so, processes the
  template
  
  @param template              The template
  @param attributes            The attributes of the tag
  @exception XDocletException  If an error occurs
  @doc.tag                     type="block"
  @doc.param                   name="level" optional="false" description="The level for the current object"
  values="class,field,reference,collection"
  @doc.param                   name="name" optional="false" description="The name of the property"