try {
// coverages xml structure (always set the headers after the data
// handlers, setting
// the data handlers kills some of them)
BodyPart coveragesPart = new MimeBodyPart();
final CoveragesData coveragesData = new CoveragesData(coverageInfo, request);
coveragesPart.setDataHandler(new DataHandler(coveragesData, "geoserver/coverages11"));
coveragesPart.setHeader("Content-ID", "<urn:ogc:wcs:1.1:coverages>");
coveragesPart.setHeader("Content-Type", "text/xml");
multipart.addBodyPart(coveragesPart);