// Generate program to create document
Program programPlan = XMLPlanToProcessVisitor.planProgram(planEnv.mappingDoc, planEnv);
// create plan from program and initialized environment
XMLProcessorEnvironment env = planEnv.createProcessorEnvironment(programPlan);
XMLPlan plan = new XMLPlan(env);
plan.setXMLSchemas(metadata.getXMLSchemas(group.getMetadataID()));
if(debug) {
analysisRecord.println(""); //$NON-NLS-1$
analysisRecord.println(plan.toString());