public void addCustomSerializer(Class clazz, CustomSerializer serializerManager) {
        customSerializers.put(clazz, serializerManager);
    }
@param serialize true is serialize, false is deserialize.
core/api/src/main/java/com/alipay/sofa/rpc/codec/AbstractSerializer.java