How do I integrate Elasticsearch with the Searchguard plugin into my SpringMVC project?

   Now my springmvc project requires the use of elasticsearch to achieve full-text search, and the need to install searchguard plug-ins to ensure data security, but how to install searchguard plug-in elasticsearch inherited to the web project? please give me some ideas.

   Here is my general situation.

   1.  Running Elasticsearch in-process in my SpringMVC web project.

   2.  Using a Transport Client to communicate with ES.

   3.  The version of ES is 2.3.4, and the version of SG is v2.3.4.4.