code: @Deprecated
      @Override
      @SuppressWarnings("unchecked")
      public void serializeObject(GenericObject rec, String fieldName, String typeName, Object obj) {
          if( obj == null ){
              rec.add(fieldName, null);
          } else if (isPrimitive(obj.getClass())){
              serializePrimitive(rec, fieldName, obj);
              return;
          } else {
              GenericObject subObject = new GenericObject(typeName, obj);
              getSerializer(typeName).serialize(obj, subObject);
              rec.add(fieldName, subObject);
          }
      }
docs: /*
  @Deprecated instead use serializeObject(GenericObject rec, String fieldName, Object obj)