diff --git a/src/net/java/sip/communicator/impl/browserlauncher/BrowserLauncherActivator.java b/src/net/java/sip/communicator/impl/browserlauncher/BrowserLauncherActivator.java
index 3dabdc802..44ccaf73f 100644
--- a/src/net/java/sip/communicator/impl/browserlauncher/BrowserLauncherActivator.java
+++ b/src/net/java/sip/communicator/impl/browserlauncher/BrowserLauncherActivator.java
@@ -8,6 +8,7 @@
import net.java.sip.communicator.service.browserlauncher.*;
import net.java.sip.communicator.util.*;
+
import org.jitsi.service.configuration.*;
import org.osgi.framework.*;
@@ -15,7 +16,7 @@
* Implements BundleActivator for the browserlauncher bundle.
*
* @author Yana Stamcheva
- * @author Lubomir Marinov
+ * @author Lyubomir Marinov
* @author Pawel Domas
*/
public class BrowserLauncherActivator
@@ -73,11 +74,10 @@ public static ConfigurationService getConfigurationService()
{
if (configService == null && bundleContext != null)
{
- ServiceReference serviceReference = bundleContext
- .getServiceReference(ConfigurationService.class.getName());
-
- configService = (ConfigurationService)bundleContext
- .getService(serviceReference);
+ configService
+ = ServiceUtils.getService(
+ bundleContext,
+ ConfigurationService.class);
}
return configService;
diff --git a/src/net/java/sip/communicator/impl/callhistory/CallHistoryActivator.java b/src/net/java/sip/communicator/impl/callhistory/CallHistoryActivator.java
index c4859bc6d..d18cb44b6 100644
--- a/src/net/java/sip/communicator/impl/callhistory/CallHistoryActivator.java
+++ b/src/net/java/sip/communicator/impl/callhistory/CallHistoryActivator.java
@@ -68,11 +68,8 @@ public void start(BundleContext bc) throws Exception
try{
logger.logEntry();
- ServiceReference refHistory = bundleContext.getServiceReference(
- HistoryService.class.getName());
-
- HistoryService historyService = (HistoryService)
- bundleContext.getService(refHistory);
+ HistoryService historyService
+ = ServiceUtils.getService(bundleContext, HistoryService.class);
//Create and start the call history service.
callHistoryService =
@@ -150,27 +147,28 @@ public static ResourceManagementService getResources()
public static Map