}
ArrayList<ContentNode> resources = (ArrayList<ContentNode>)csColl.getChildren();
if (resources != null && resources.size()!=0) {
csColl.removeChild(resources.get(0).getName());
}
ContentResource resource = (ContentResource)csColl.createChild("GoToCoverScreen"+new Date().getTime()+".xml", Type.RESOURCE);
// Write the new list to the resource
ByteArrayOutputStream os = new ByteArrayOutputStream();
Writer w = new OutputStreamWriter(os);
goToCoverScreenInfo.encode(w);
resource.put(os.toByteArray());
} catch (ContentRepositoryException ex) {
Logger.getLogger(PlacemarkUtils.class.getName()).log(Level.SEVERE, null, ex);
} catch (JAXBException ex) {
Logger.getLogger(PlacemarkUtils.class.getName()).log(Level.SEVERE, null, ex);
}