@Override
    public void doApply(H apiObject) {
        try {
            this.apiObject = apiObject;

            if(firstElem) {
                chainPolicyHandlers();
                firstElem = false;
            }

            if (policyIterator.hasNext()) {
                applyPolicy(policyIterator.next(), getContext());
            } else {
                handleHead(getHead());
            }
        } catch (Throwable error) {
            throwError(error);
        }
    }
@ Override public void doApply ( H apiObject ) { try { this . apiObject = apiObject ; if ( firstElem ) { chainPolicyHandlers ( ) ; firstElem = false ; } if ( policyIterator . hasNext ( ) ) { applyPolicy ( policyIterator . next ( ) , getContext ( ) ) ; } else { handleHead ( getHead ( ) ) ; } } catch ( Throwable error ) { throwError ( error ) ; } }
@see io.apiman.gateway.engine.policy.IPolicyChain#doApply(java.lang.Object)