.replaceAll("file_to_include\\.xml", include.toURI().toURL().toString());
FileUtils.writeStringToFile(input, inputSource);
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(output));
Pipeline<StAXPipelineComponent> pipe = new NonCachingPipeline<StAXPipelineComponent>();
pipe.addComponent(new XMLGenerator(new FileInputStream(input)));
pipe.addComponent(new IncludeTransformer());
pipe.addComponent(new XMLSerializer());
pipe.setup(out);
pipe.execute();
out.close();