}
private byte[] getFoxmlObject(String pid, String contentLocation) throws Exception {
Foxml11Document doc = createFoxmlObject(pid, contentLocation);
ByteArrayOutputStream out = new ByteArrayOutputStream();
doc.serialize(out);
return out.toByteArray();
}
private String addDatastream(String pid, String contentLocation)
throws Exception {