class PomStructureEditor {

    public void onNewDynamicDependency(final @Observes AddPomDependencyEvent event) {
        final Path projectPath = event.getProjectPath();
        final DependencyType dependencyType = event.getDependencyType();
        addDependenciesToPom(projectPath,
                             mapper.getDependencies(dependencyType));
    }

    public  PomStructureEditor();

}