code: public void validate() throws ValidateException
     {
        boolean inboundOrOutbound = false;
  
        if (this.getOutboundResourceadapter() != null && this.getOutboundResourceadapter().validationAsBoolean())
           inboundOrOutbound = true;
  
        if (this.getInboundResourceadapter() != null && this.getInboundResourceadapter().validationAsBoolean()
              && this.getResourceadapterClass() != null)
           inboundOrOutbound = true;
  
        if (!inboundOrOutbound
              && (XsdString.isNull(this.resourceadapterClass) || this.resourceadapterClass.getValue().trim().equals("")))
           throw new ValidateException(bundle.invalidMetadataForResourceAdapter());
     }
docs: {@inheritDoc}