code: public static List<String> getApplicationProfiles(final Environment environment) {
          return Arrays.stream(environment.getActiveProfiles()).collect(Collectors.toList());
      }
docs: Gets application profiles.
  
  @param environment the environment
  @return the application profiles