Small refactoring to avoid resource leak warning
diff --git a/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/module/internal/KernelModuleContextAccessor.java b/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/module/internal/KernelModuleContextAccessor.java
index e6a54c6..d01e1ff 100644
--- a/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/module/internal/KernelModuleContextAccessor.java
+++ b/org.eclipse.virgo.kernel.deployer/src/main/java/org/eclipse/virgo/kernel/module/internal/KernelModuleContextAccessor.java
@@ -55,9 +55,8 @@
                             if (service instanceof ApplicationContext) {
                                 ApplicationContext appCtx = (ApplicationContext) service;
                                 if (appCtx instanceof ConfigurableOsgiBundleApplicationContext) {
-                                    ConfigurableOsgiBundleApplicationContext cAppCtx = (ConfigurableOsgiBundleApplicationContext) appCtx;
-                                    if (bundleContext == cAppCtx.getBundleContext()) {
-                                        return new ModuleContextWrapper(cAppCtx);
+                                    if (bundleContext == ((ConfigurableOsgiBundleApplicationContext) appCtx).getBundleContext()) {
+                                        return new ModuleContextWrapper((ConfigurableOsgiBundleApplicationContext) appCtx);
                                     }
                                 }
                             }