public Reference getBeneficiaryReference() throws FHIRException { 
      if (!(this.beneficiary instanceof Reference))
        throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.beneficiary.getClass().getName()+" was encountered");
      return (Reference) this.beneficiary;
    }
public Reference getBeneficiaryReference ( ) throws FHIRException { if ( ! ( this . beneficiary instanceof Reference ) ) throw new FHIRException ( "Type mismatch: the type Reference was expected, but " + this . beneficiary . getClass ( ) . getName ( ) + " was encountered" ) ; return ( Reference ) this . beneficiary ; }
@return {@link #beneficiary} (The party who benefits from the insurance coverage.)