private void edit(final ProcessorFilter filter,
                      final ExpressionOperator defaultExpression) {
        if (editInterceptor.get()) {
            if (filter == null && ProcessorType.STREAMING_ANALYTIC.equals(processorType)) {
                processorEditPresenterProvider.get()
                        .show(processorType,
                                docRef,
                                null,
                                defaultExpression,
                                System.currentTimeMillis(),
                                null,
                                result -> {
                                    if (result != null) {
                                        // The runAsUser can't be changed in the editor
                                        refresh(result);
                                    }
                                });
            } else {
                processorEditPresenterProvider.get()
                        .show(processorType, docRef, filter, null, result -> {
                            if (result != null) {
                                // The runAsUser can't be changed in the editor
                                refresh(result);
                            }
                        });
            }
        }
    }
Make a copy of the currently selected processor
stroom-core-client/src/main/java/stroom/processor/client/presenter/ProcessorPresenter.java