void (MavenExecutionRequest request, final Runnable runnable) { if (VersionComparatorUtil.compare(getMavenVersion(), "3.2.5") >= 0) { executeWithSessionScope(request, runnable); } else { executeWithMavenSessionLegacy(request, runnable); } }