protected void execute(OperationContext operationContext, ResultHandler resultHandler,
org.gatein.mop.api.workspace.Page rootPage) throws ResourceNotFoundException, OperationException {
String operationName = operationContext.getOperationName();
SiteKey siteKey = getSiteKey(rootPage.getSite());
DataStorage dataStorage = operationContext.getRuntimeContext().getRuntimeComponent(DataStorage.class);
PageService pageService = operationContext.getRuntimeContext().getRuntimeComponent(PageService.class);
String pageName = operationContext.getAddress().resolvePathTemplate("page-name");
if (pageName == null) { // retrieve pages
try {
resultHandler.completed(PageUtils.getAllPages(dataStorage, pageService, siteKey));