// Pages management resource registration
ManagedResource.Registration pages = sites.registerSubResource("pages",
description("Management resource responsible for handling management operations for pages of a site."));
// Pages management operations
pages.registerOperationHandler(OperationNames.READ_RESOURCE, new PageReadResource(),
description("Lists available pages at a specified address."), true);
pages.registerOperationHandler(OperationNames.READ_CONFIG_AS_XML, new PageReadConfigAsXml(),
description("Reads pages as configuration xml at a specified address."), true);
pages.registerOperationHandler(OperationNames.EXPORT_RESOURCE, new PageExportResource(),
description("Exports pages configuration xml as a zip file."), true);