public void setStatus(BounceProxyStatus status) throws IllegalStateException {
        // this checks if the transition is valid
        if (this.status.isValidTransition(status)) {
            this.status = status;
        } else {
            throw new IllegalStateException("Illegal status transition from " + this.status + " to " + status);
        }
    }
public void setStatus ( BounceProxyStatus status ) throws IllegalStateException { if ( this . status . isValidTransition ( status ) ) { this . status = status ; } else { throw new IllegalStateException ( "Illegal status transition from " + this . status + " to " + status ) ; } }
Sets the status of the bounce proxy.

@param status the status of the bounce proxy
@throws IllegalStateException
if setting this status is not possible for the current bounce
proxy status.