class ProcessConfigPresenter {

    void onDependencyPathSelectedEvent(@Observes final DependencyPathSelectedEvent event) throws IOException {
        if (event != null && event.getContext() != null && event.getPath() != null) {
            deploymentDescriptorService.call(processConfigModule -> {
                ProcessConfigModule module = (ProcessConfigModule) processConfigModule;
                view.setContent(ClientRuntimeStrategy.convert(module.getRuntimeStrategy()).getValue(view.getTranslationService()),
                                module.getKBase(),
                                module.getKSession(),
                                ClientMergeMode.MERGE_COLLECTIONS.getValue(view.getTranslationService()));
            }).getProcessConfig(event.getPath());
        }
    }

    @Inject public  ProcessConfigPresenter(final View view, Caller<DeploymentDescriptorService> deploymentDescriptorService);

}