code: @SuppressWarnings("all")
      protected static boolean writeObjectType(Output out, Object obj) {
          if (obj instanceof ObjectMap || obj instanceof BeanMap) {
              out.writeObject((Map) obj);
          } else if (obj instanceof Map) {
              out.writeMap((Map) obj);
          } else if (obj instanceof RecordSet) {
              out.writeRecordSet((RecordSet) obj);
          } else {
              out.writeObject(obj);
          }
          return true;
      }
docs: Write typed object to the output
  
  @param out
  Output writer
  @param obj
  Object type to write
  @return <tt>true</tt> if the object has been written, otherwise <tt>false</tt>