linkE.setAttribute("src",filename); linkE.setAttribute("type",mimeType);
contentE.setAttribute("src",filename); contentE.setAttribute("type",mimeType);
   protected Element generateMediaEntry(Document owner,String created,String title,String filename,String mimeType) {      String id = "urn:uuid:"+UUID.randomUUID();      Element entry = owner.createElementNS(Atom.NAMESPACE_STRING,"entry");            Element idE = owner.createElementNS(Atom.NAMESPACE_STRING,"id");      idE.appendChild(owner.createTextNode(id));      entry.appendChild(idE);            Element publishedE = owner.createElementNS(Atom.NAMESPACE_STRING,"published");      publishedE.appendChild(owner.createTextNode(created));      entry.appendChild(publishedE);            Element updatedE = owner.createElementNS(Atom.NAMESPACE_STRING,"updated");      updatedE.appendChild(owner.createTextNode(created));      entry.appendChild(updatedE);            Element titleE = owner.createElementNS(Atom.NAMESPACE_STRING,"title");      titleE.appendChild(owner.createTextNode(title));      entry.appendChild(titleE);            Element linkE = owner.createElementNS(Atom.NAMESPACE_STRING,"link");      linkE.setAttribute("rel","edit");      linkE.setAttribute("type",Atom.MIME_TYPE);      linkE.setAttribute("href","?id="+id);      entry.appendChild(linkE);            linkE = owner.createElementNS(Atom.NAMESPACE_STRING,"link");      linkE.setAttribute("rel","edit-media");      linkE.setAttribute("type",mimeType);      linkE.setAttribute("href",filename);      entry.appendChild(linkE);            Element contentE = owner.createElementNS(Atom.NAMESPACE_STRING,"content");      entry.appendChild(contentE);      linkE.setAttribute("src",filename);      linkE.setAttribute("type",mimeType);            return entry;   }