docs: public static String fixFailedContentSpec(final Integer id, final String failedContentSpec, final String validText,
              final boolean includeChecksum) {
          if (failedContentSpec == null || failedContentSpec.isEmpty()) {
              return null;
          } else if (includeChecksum) {
              if (id == null || getContentSpecChecksum(failedContentSpec) != null) {
                  return failedContentSpec;
              } else {
                  final String cleanContentSpec = removeChecksumAndId(failedContentSpec);
                  final String checksum = getContentSpecChecksum(validText);
                  return CommonConstants.CS_CHECKSUM_TITLE + " = " + checksum + "\n" + CommonConstants.CS_ID_TITLE + " = " +
                          id + "\n" + cleanContentSpec;
              }
          } else {
              final String cleanContentSpec = removeChecksum(failedContentSpec);
              if (id == null || getContentSpecID(cleanContentSpec) != null) {
                  return cleanContentSpec;
              } else {
                  return CommonConstants.CS_ID_TITLE + " = " + id + "\n" + cleanContentSpec;
              }
          }
      }