[R-Help] Remove use of deprecated methods of Spring Boot
diff --git a/rhelp/org.eclipse.statet.rhelp.server/src/main/java/org/eclipse/statet/internal/rhelp/server/update/REnvIndexController.java b/rhelp/org.eclipse.statet.rhelp.server/src/main/java/org/eclipse/statet/internal/rhelp/server/update/REnvIndexController.java
index 05813e8..e924d0c 100644
--- a/rhelp/org.eclipse.statet.rhelp.server/src/main/java/org/eclipse/statet/internal/rhelp/server/update/REnvIndexController.java
+++ b/rhelp/org.eclipse.statet.rhelp.server/src/main/java/org/eclipse/statet/internal/rhelp/server/update/REnvIndexController.java
@@ -32,6 +32,7 @@
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.SpringApplication;
 import org.springframework.context.ApplicationContext;
+import org.springframework.core.env.Profiles;
 import org.springframework.stereotype.Component;
 
 import org.eclipse.statet.jcommons.collections.ImList;
@@ -77,7 +78,7 @@
 			final REnvIndexConfig config, final ApplicationContext appContext) {
 		this.rEnvManager= nonNullAssert(rEnvManager);
 		this.rHelpManager= nonNullAssert(rHelpManager);
-		if (appContext.getEnvironment().acceptsProfiles(INDEX_AND_EXIT_PROFILE)) {
+		if (appContext.getEnvironment().acceptsProfiles(Profiles.of(INDEX_AND_EXIT_PROFILE))) {
 			this.mode= INDEX_AND_EXIT;
 		}
 		else {