protected CustomSerializer getCustomSerializer(Class clazz) {
        return customSerializers.get(clazz);
    }
@param serialize true is serialize, false is deserialize.
core/api/src/main/java/com/alipay/sofa/rpc/codec/AbstractSerializer.java