code: public static String fixFailedContentSpec(final ContentSpecWrapper contentSpec, final String validText, final boolean includeChecksum) {
          return fixFailedContentSpec(contentSpec.getId(), contentSpec.getFailed(), validText, includeChecksum);
      }
docs: Fixes a failed Content Spec so that the ID and CHECKSUM are included. This is primarily an issue when creating new content specs
  and they are initially invalid.
  
  @param contentSpec     The content spec to fix.
  @param validText       The content specs latest valid text.
  @param includeChecksum If the checksum should be included in the output.
  @return The fixed failed content spec string.