@Override
 public DefaultDeploymentDescriptor writeTo(Writer writer) {
   transformer.transform(toXmlNode(), writer);
   return this;
 }
 @Override
 public DeploymentDescriptor withXml(Action<? super XmlProvider> action) {
   transformer.addAction(action);
   return this;
 }
 @Override
 public DefaultDeploymentDescriptor writeTo(Object path) {
   transformer.transform(toXmlNode(), fileResolver.resolve(path));
   return this;
 }
 @Override
 public DeploymentDescriptor withXml(Closure closure) {
   transformer.addAction(closure);
   return this;
 }