{
pageManager.deepCopyFolder(source, targetPath, owner, copyIds);
}
Folder target = pageManager.getFolder(targetPath);
return new FolderBean(target);
}
else
{
Folder target = pageManager.copyFolder(source, targetPath);
pageManager.updateFolder(target, true);
return new FolderBean(target);
}
}
else
{
throw new WebApplicationException(Status.NOT_FOUND);