MavenProject (MavenId id, MavenProjectsManager projectsManager, ConvertContext context) { if (MavenConsumerPomUtil.isAutomaticVersionFeatureEnabled(context)) { return projectsManager.findSingleProjectInReactor(id); } else { return projectsManager.findProject(id); } }