try {
executeHandlers(resource, operationContext, address, OperationNames.READ_CONFIG_AS_XML, stepResultHandler, filter,
true);
List<PageNavigation> results = stepResultHandler.getResults();
if (results.isEmpty()) {
resultHandler.completed(new ExportResourceModel(Collections.<ExportTask> emptyList()));
} else {
NavigationExportTask task = new NavigationExportTask(stepResultHandler.getResults().get(0), marshaller);
resultHandler.completed(new ExportResourceModel(task));
}
} catch (ResourceNotFoundException e) {
throw e;
} catch (OperationException e) {
throw new OperationException(e.getOperationName(), getStepMessage(e, address, stepResultHandler), e);