Permission accessPermissions = Container.DEFAULT_ACCESS_PERMISSION;
Permission edit = Page.DEFAULT_EDIT_PERMISSION;
Permission moveAppsPermissions = Container.DEFAULT_MOVE_APPS_PERMISSION;
Permission moveContainersPermissions = Container.DEFAULT_MOVE_CONTAINERS_PERMISSION;
PageState pageState = new PageState(pageId.getPageName(), null, false, null,
Arrays.asList(Util.from(accessPermissions)),
Util.from(edit)[0], Arrays.asList(Util.from(moveAppsPermissions)),
Arrays.asList(Util.from(moveContainersPermissions)));
PageImpl p = new PageImpl(this, new PageContext(Util.from(pageId), pageState));