if (checkErrorOrCancel(request, projectedRequest)) return;
// No error, so project the results back to the federated repository ...
Location sourceLocation = null;
if (projectedRequest instanceof CreateNodeRequest) {
CreateNodeRequest source = (CreateNodeRequest)projectedRequest;
sourceLocation = source.getActualLocationOfNode();
} else if (projectedRequest instanceof ReadNodeRequest) {
// In this case, the original request was to create the node only if it was missing,
// but we knew it already exists because the parent was a placeholder and the child
// mapped to an existing proxy node. Therefore, record the location...
ReadNodeRequest source = (ReadNodeRequest)projectedRequest;
sourceLocation = source.getActualLocationOfNode();
}
request.setActualLocationOfNode(projectToFederated(request.under(), projected.getProjection(), sourceLocation, request));
}