public boolean invokePolicyForResponse(Object requestDataHolder,FaxJob faxJob)
    {
        if(requestDataHolder==null)
        {
            throw new FaxException("Request data holder not provided.");
        }
        if(faxJob==null)
        {
            throw new FaxException("Fax job not provided.");
        }
        
        //invoke policy
        boolean continueFlow=this.invokePolicyForResponseImpl(requestDataHolder,faxJob);
        
        return continueFlow;
    }
public boolean invokePolicyForResponse ( Object requestDataHolder , FaxJob faxJob ) { if ( requestDataHolder == null ) { throw new FaxException ( "Request data holder not provided." ) ; } if ( faxJob == null ) { throw new FaxException ( "Fax job not provided." ) ; } boolean continueFlow = this . invokePolicyForResponseImpl ( requestDataHolder , faxJob ) ; return continueFlow ; }
This function invokes the vendor policy.<br>
The policy may charge a customer for the service, or validate the user
has permissions to invoke the action and so on.<br>
In case the policy takes over the flow and the fax bridge should not
be invoked, this method should return false.

@param   requestDataHolder
The request data holder
@param   faxJob
The submitted fax job
@return  True if to continue the flow, else false (in case the policy sends the response)