coveragesPart.setHeader("Content-Type", "text/xml");
multipart.addBodyPart(coveragesPart);
// the actual coverage
BodyPart coveragePart = new MimeBodyPart();
CoverageEncoder encoder = new CoverageEncoder(delegate, coverage, outputFormat, new HashMap<String, String>());
coveragePart.setDataHandler(new DataHandler(encoder, "geoserver/coverageDelegate"));
coveragePart.setHeader("Content-ID", "<theCoverage>");
coveragePart.setHeader("Content-Type", delegate.getMimeType(outputFormat));
coveragePart.setHeader("Content-Transfer-Encoding", "base64");
multipart.addBodyPart(coveragePart);