//
org.gatein.mop.api.workspace.Page srcPage;
Site srcSite = workspace.getSite(siteType, ownerId);
if (srcSite == null)
{
throw new NoSuchDataException("Could not clone page " + name + "from non existing site of type "
+ ownerType + " with id " + ownerId);
}
else
{
org.gatein.mop.api.workspace.Page root = srcSite.getRootPage();
org.gatein.mop.api.workspace.Page pages = root.getChild("pages");
srcPage = pages.getChild(name);
}
//
if (srcPage == null)
{
throw new NoSuchDataException("Could not clone non existing page " + name + " from site of type "
+ ownerType + " with id " + ownerId);
}
//
Site dstSite = workspace.getSite(cloneSiteType, cloneOwnerId);