code: private static String formatEnvironmentContext(Environment environment) {
      String environmentName = environment.getName();
  
      if (environmentName == null || environmentName.isEmpty()) {
        return "";
      } else {
        return environmentName.endsWith("_") ? environmentName : environmentName + "_";
      }
    }
docs: Format the provided {@link Environment} to ensure it ends with an underscore
  
  @param environment The provided {@link Environment} context
  @return The formatted {@link String} of the {@link Environment} context