title: error while using elastic search while creating a osgi bundle
body: <p>created a wrapper for elastic search. it working fine while running as java application.
  But while i create OSGI bundle it throwing a error.</p>
  
  <pre><code>  org.elasticsearch.env.FailedToResolveConfigException: Failed to resolve config path [names.txt], tried file path [names.txt], path file [/home/local/PAYODA/sidharthan.r/config/names.txt], and classpath
  at org.elasticsearch.env.Environment.resolveConfig(Environment.java:207)
  at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:118)
  at org.elasticsearch.client.transport.TransportClient.&lt;init&gt;(TransportClient.java:154)
  at org.elasticsearch.client.transport.TransportClient.&lt;init&gt;(TransportClient.java:120)
  at com.payoda.commons.elasticsearch.util.GenericEsSearch.getES(GenericEsSearch.java:54)
  </code></pre>
  
  <p>Pls help me..
  am using ES version 0.90.10 </p>