SerializationContext context = new SerializationContextImpl(writer, null);
context.setPretty(true);
try {
FileProvider config = (FileProvider)engine.getConfig();
WSDDDeployment deployment = config.getDeployment();
deployment.writeToContext(context);
} catch (Exception e) {
// If the engine config isn't a FileProvider, or we have no
// engine config for some odd reason, we'll end up here.
throw new AxisFault(JavaUtils.getMessage("noEngineWSDD"));