StoragePluginRegistry reg = new StoragePluginRegistry(bitContext);
PhysicalPlanReader reader = new PhysicalPlanReader(c, c.getMapper(),
CoordinationProtos.DrillbitEndpoint.getDefaultInstance(), reg);
PhysicalPlan plan = reader.readPhysicalPlan(Files.toString(FileUtils.getResourceAsFile(file), Charsets.UTF_8));
FunctionImplementationRegistry registry = new FunctionImplementationRegistry(c);
FragmentContext context = new FragmentContext(bitContext, PlanFragment.getDefaultInstance(), connection, registry);
SimpleRootExec exec = new SimpleRootExec(ImplCreator.getExec(context, (FragmentRoot) plan.getSortedOperators(false)
.iterator().next()));
return exec;