private TreeBuilder < ResourceMeta > buildConverterPlugin ( TreeBuilder < ResourceMeta > builder , String pluginType , String path , String selector , Map < String , String > config ) { StorageConverterPlugin converterPlugin = loadPlugin ( pluginType , config , storageConverterPluginProviderService ) ; //convert tree under the subpath if specified, AND matching the selector if specified return builder . convert ( new StorageConverterPluginAdapter ( pluginType , converterPlugin ) , null != path ? PathUtil . asPath ( path . trim ( ) ) : null , null != selector ? PathUtil . < ResourceMeta > resourceSelector ( selector ) : null ) ; }
Append a converter plugin to the tree builder