ProtectedResource dstPR = dstPage.adapt(ProtectedResource.class);
dstPR.setAccessPermissions(srcPR.getAccessPermissions());
dstPR.setEditPermission(srcPR.getEditPermission());
if (srcPage.isAdapted(ProtectedContainer.class)) {
ProtectedContainer srcPc = srcPage.adapt(ProtectedContainer.class);
ProtectedContainer dstPc = dstPage.adapt(ProtectedContainer.class);
dstPc.setMoveAppsPermissions(srcPc.getMoveAppsPermissions());
dstPc.setMoveContainersPermissions(srcPc.getMoveContainersPermissions());
}
// Need to clone page data structure as well
copy(srcPage, dstPage, srcPage.getRootComponent(), dstPage.getRootComponent());