Anyway to add a nvinfer::IConvolutionLayer in PluginFactory?

I have a unmodifiable caffe prototxt, which includes ConvolutionDepthWise layer. Since tensorrt not support ConvolutionDepthWise directly, I want to add nvinfer::IConvolutionLayer with groups param in PluginFactory so that it can replace ConvolutionDepthWise Layer. Is there anyway to do that?