try {
DynamicApplicationContext dynamicContext =
new DynamicApplicationContext (context.getPolicyContext ());
dynamicContext.setMessageIdentifier (context.getMessageIdentifier ());
dynamicContext.inBoundMessage (true);
DynamicPolicyCallback callback =
new DynamicPolicyCallback (policyClone, dynamicContext);
ProcessingContext.copy (dynamicContext.getRuntimeProperties(), context.getExtraneousProperties());
HarnessUtil.makeDynamicPolicyCallback(callback,
context.getSecurityEnvironment().getCallbackHandler());