if (Page.DOCUMENT_TYPE.equals(type))
{
Page source = pageManager.getPage(sourcePath);
Page target = pageManager.copyPage(source, targetPath);
pageManager.updatePage(target);
return new PageBean(target);
}
else if (Link.DOCUMENT_TYPE.equals(type))
{
Link source = getLink(sourcePath);
Link target = pageManager.copyLink(source, targetPath);