code: private static String replaceBooleanStringByIntegerRepresentation(final String possibleBooleanString) {
          if (possibleBooleanString.equals(TRUE.toString())) {
              return "1";
          } else if (possibleBooleanString.equals(FALSE.toString())) {
              return "0";
          }
          return possibleBooleanString;
      }
docs: Checks whether a String is a Boolean value and replaces it with its Integer representation
  "true" -> "1"
  "false" -> "0"
  
  @param possibleBooleanString "true" or "false"
  @return "1" or "0"