@VisibleForTesting
    public static void clear() {
        genericServiceMap.clear();
    }
@param serialize true is serialize, false is deserialize.
core/api/src/main/java/com/alipay/sofa/rpc/codec/AbstractSerializer.java