public ParamConfig build() throws Exception {
        validate();
        return new DefaultParamConfig(
                genericType,
                clazz,
                name,
                defaultValue,
                type,
                metas,
                serializer != null ?  instantiate(serializer) : classSerializerRegistry.get(clazz),
                (COOKIE.equals(type) || HEADER.equals(type)) ? true : encoded,
                paramProcessor != null ? instantiate(paramProcessor) : ParamProcessors.newInstance(type, listSeparator));
    }
public ParamConfig build ( ) throws Exception { validate ( ) ; return new DefaultParamConfig ( genericType , clazz , name , defaultValue , type , metas , serializer != null ? instantiate ( serializer ) : classSerializerRegistry . get ( clazz ) , ( COOKIE . equals ( type ) || HEADER . equals ( type ) ) ? true : encoded , paramProcessor != null ? instantiate ( paramProcessor ) : ParamProcessors . newInstance ( type , listSeparator ) ) ; }
@inheritDoc