PathNode node = getTargetNode(workspace, request, request.at());
if (node == null) return;
if (!(workspace instanceof WritablePathWorkspace)) {
I18n msg = GraphI18n.workspaceIsReadOnly;
request.setError(new InvalidRequestException(msg.text(repository.getSourceName(), workspace.getName())));
return;
}
WritablePathWorkspace newWorkspace = (WritablePathWorkspace)workspace;
newWorkspace.removeNode(getExecutionContext(), node.getPath());