code: private Set<String> doGetActiveProfiles() {
          synchronized (activeProfiles) {
              if (activeProfiles.isEmpty()) {
                  String[] profiles = getProfilesFromSystemProperty(ACTIVE_PROFILES_PROPERTY_NAME);
                  if (profiles != null) {
                      setActiveProfiles(profiles);
                      String[] activeProfiles = getActiveProfiles();
                      if (activeProfiles.length > 0) {
                          log.info("Activating profiles [" + StringUtils.joinCommaDelimitedList(activeProfiles) + "]");
                      }
                  }
              }
              return activeProfiles;
          }
      }
docs: Returns the set of active profiles as explicitly set through
  {@link #setActiveProfiles} or if the current set of active profiles
  is empty, check for the presence of the {@value #ACTIVE_PROFILES_PROPERTY_NAME}
  property and assign its value to the set of active profiles.
  
  @see #getActiveProfiles()
  @see #ACTIVE_PROFILES_PROPERTY_NAME