/**
  * Returns the <tt>UIService</tt> obtained from the bundle context.
  *
  * @return the <tt>UIService</tt> obtained from the bundle context
  */
 private UIService getUIService() {
   if (uiService == null) {
     uiService =
         ServiceUtils.getService(ResourceManagementActivator.bundleContext, UIService.class);
   }
   return uiService;
 }
  /**
   * Returns a <tt>MediaService</tt> implementation (if any).
   *
   * @return a <tt>MediaService</tt> implementation (if any)
   */
  MediaService getMediaService() {
    MediaService mediaService = ServiceUtils.getService(getBundleContext(), MediaService.class);

    // TODO For an unknown reason, ServiceUtils2.getService fails to
    // retrieve the MediaService implementation. In the form of a temporary
    // workaround, get it through LibJitsi.
    if (mediaService == null) mediaService = LibJitsi.getMediaService();

    return mediaService;
  }
 /** Returns cached instance of {@link ConfigurationService}. */
 private static ConfigurationService getConfigService() {
   if (configService == null) {
     configService = ServiceUtils.getService(bundleContext, ConfigurationService.class);
   }
   return configService;
 }