code: public static void writeInputModel( SystemInputDef inputDef, OutputStream outputStream)
      {
      try( SystemInputJsonWriter writer = new SystemInputJsonWriter( outputStream))
        {
        writer.write( inputDef);
        }
      catch( Exception e)
        {
        throw new RuntimeException( "Can't write input definition", e);
        }
      }
docs: Writes a {@link SystemInputJsonWriter JSON document} describing the given system input definition to the given output stream.