private byte[] getAtomObject(String pid, String contentLocation) throws Exception {
Feed feed = createAtomObject(pid, contentLocation);
Writer sWriter = new StringWriter();
feed.writeTo("prettyxml", sWriter);
return sWriter.toString().getBytes("UTF-8");
}
private byte[] getFoxmlObject(String pid, String contentLocation) throws Exception {
Foxml11Document doc = createFoxmlObject(pid, contentLocation);