@SuppressWarnings("nls")
    @Override
    public void apply(final ApiRequest request, final IPolicyContext context, final Object config,
            final IPolicyChain<ApiRequest> chain) {
        Map jsonPayload = context.getAttribute(PolicyContextKeys.REQUEST_PAYLOAD, (Map) null);
        if (jsonPayload != null) {
            String prop1 = (String) jsonPayload.get("property-1");
            request.getHeaders().put("X-Property-1", prop1);
            jsonPayload.put("property-5", "value-5");
        }
        chain.doApply(request);
    }
@see io.apiman.gateway.engine.policy.IPolicy#apply(io.apiman.gateway.engine.beans.ApiRequest, io.apiman.gateway.engine.policy.IPolicyContext, java.lang.Object, io.apiman.gateway.engine.policy.IPolicyChain)
gateway/test/src/test/java/io/apiman/gateway/test/policies/SimpleJsonPayloadPolicy.java