code: public void validate() throws ValidateException
     {
        if ((this.xaDataSourceClass == null || this.xaDataSourceClass.trim().length() == 0) &&
            (this.driver == null || this.driver.trim().length() == 0))
           throw new ValidateException(bundle.requiredElementMissing(XML.ELEMENT_XA_DATASOURCE_CLASS,
                                                                     this.getClass().getCanonicalName()));
  
        if (this.xaDataSourceProperty.isEmpty())
           throw new ValidateException(bundle.requiredElementMissing(XML.ELEMENT_XA_DATASOURCE_PROPERTY,
                                                                     this.getClass().getCanonicalName()));
     }
docs: {@inheritDoc}