// This allows us to filter based on path template site-layout.
ManagedResource.Registration siteLayout = sites.registerSubResource("{site-layout: portal|group|user}",
description("Management resource responsible for handling management operations for a site's layout."));
siteLayout.registerOperationHandler(OperationNames.READ_RESOURCE, new SiteLayoutReadResource(),
description("The site layout resource."));
siteLayout.registerOperationHandler(OperationNames.READ_CONFIG, new SiteLayoutReadConfig(),
description("Reads site layout data for a specific site as configuration xml."));
siteLayout.registerOperationHandler(OperationNames.EXPORT_RESOURCE, new SiteLayoutExportResource(),
description("Exports site layout configuration xml as a zip file."));
}