@Override
    public PolicyFailure createFailure(PolicyFailureType type, int failureCode, String message) {
        PolicyFailure failure = new PolicyFailure(); // TODO pool
        failure.setFailureCode(failureCode);
        failure.setMessage(message);
        failure.setType(type);
        return failure;
    }
@see io.apiman.gateway.engine.components.IPolicyFailureFactoryComponent#createFailure(io.apiman.gateway.engine.beans.PolicyFailureType, int, java.lang.String)
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/components/PolicyFailureFactoryComponent.java