protected CustomSerializer getObjCustomSerializer(Object obj) {
        if (obj == null) {
            return null;
        }
        return getCustomSerializer(obj.getClass());
    }
@param serialize true is serialize, false is deserialize.
core/api/src/main/java/com/alipay/sofa/rpc/codec/AbstractSerializer.java