tempDir.mkdirs();
List<Integer> uploadIDs = new ArrayList<Integer>();
List<Integer> recordIDs = new ArrayList<Integer>();
try {
exporter.addProject(list.get(0), doc, uploadIDs, recordIDs);
writeBinaryObjects(recordIDs, uploadIDs, tempPath, encoder);
// perform XSLT transformation to get the DATA into the PLANS
XMLWriter writer = new XMLWriter(new FileOutputStream("/tmp/testout"+System.currentTimeMillis()+".xml"));
writer.write(doc);