code: public static void writeResource(final Resource.Writable resource,
                                       final CharSequence content) throws IOException {
          resource.useWriter(writer -> IOUtils.write(content.toString(), writer));
      }
docs: Write content to a Writable Resource.
  
  @param resource a writable resource instance.
  @param content  The content that will be writen to the resource.
  @throws IOException a IOException can occur during the write process.