*/
private void runWithOwnSubContext(Runnable codeToRun) {
MappedContext testRunContext = MappedContext.create();
testRunContext.setParentDefinition(parentContext);
TestContext previousContext = sharedContext.get();
sharedContext.set(testRunContext);
try{
codeToRun.run();
}finally{
sharedContext.set(previousContext);