Query on ES Plugin

Hi,

I am trying to add a new Facet Search Type (withing Search Module) using ES
Plugin Module.
After going through the code I could figure out that I need to add
"MYFacetProcessor.class" using FacetModule.addFacetProcessor

For that I created my own plugin from where I would like to add
MYFacetProcessor.class to the Facet Module. But I am not able to figure out
how to get hold of the FacetModule instance so that I can add it.

It would be great if anyone give some tips how to do it.

Thanks
Rahul