{
QueryEngineFactory f = QueryEngineRegistry.findFactory(query, qe.getDataset().asDatasetGraph(), ARQ.getContext()) ;
if ( f == null )
System.err.println("printPlan: Unknown engine type: "+Utils.className(qe)) ;
Plan plan = f.create(query, qe.getDataset().asDatasetGraph(), BindingRoot.create(), ARQ.getContext()) ;
SerializationContext sCxt = new SerializationContext(query) ;
IndentedWriter out = IndentedWriter.stdout ;
plan.output(out, sCxt) ;
out.flush();