code: public static void write(OWLObject object, BinaryOWLOutputStream outputStream) throws IOException {
          OWLObjectBinaryType<OWLObject> type = OWLObjectBinaryType.<OWLObject>getType(object);
          outputStream.writeByte(type.getMarker());
          final OWLObjectSerializer<OWLObject> serializer = type.getSerializer();
          serializer.write(object, outputStream);
      }
docs: Writes an {@link OWLObject} to a {@link BinaryOWLOutputStream}.
  @param object The object to be written.  Not {@code null}.
  @param outputStream The output stream to write the object to. Not {@code null}.
  @throws IOException If there was a problem writing to the output stream.