title: How to get the instance of an OSGi service in AEM, without using @Reference annotation?
body: <p>I have a factory service as-</p>
  
  <pre><code>com.adobe.test.MyService
  </code></pre>
  
  <p>And i have configured it with multiple configurations at its properties.
  I want to use a particularly configured service instance in any of my class.
  I can use annotation like-</p>
  
  <pre><code>@Reference("uniqueId=878")
  MyService myService
  </code></pre>
  
  <p>But what if i want to use the sling method like-</p>
  
  <pre><code>com.adobe.test.MyService myService = sling.getService(com.adobe.test.MyService.class);
  </code></pre>
  
  <p>where and how can i define the unique id for a particular instance of my interest?</p>