code: public Document marshalEntry(Object content) throws JAXBException {
          JAXBElement<EntryType> entryElement = createEntry(content);
  
          Document doc = documentBuilder.newDocument();
          doc.setXmlStandalone(true);
  
          marshaller.marshal(entryElement, doc);
  
          return doc;
  
      }
docs: Convert the given content object into an ATOM entry (represented as a DOM
  document) suitable for sending up to the Media Services service.
  
  @param content
  The content object to send
  @return The generated DOM
  @throws JAXBException
  if content is malformed/not marshallable