class DataModelerScreenPresenter extends KieEditor<String> {

    void onCopy() {
        validationService.call(checkMessages -> {
            if (((List<ValidationMessage>) checkMessages).isEmpty()) {
                showCopyPopup();
            } else {
                validationPopup.showCopyValidationMessages(() -> showCopyPopup(),
                                                           () -> {
                                                           },
                                                           ((List<ValidationMessage>) checkMessages));
            }
        }).validateForCopy(versionRecordManager.getPathToLatest(),
                           context.getDataObject());
    }

    @Inject public  DataModelerScreenPresenter(DataModelerScreenView baseView,
                                      SessionInfo sessionInfo);

}