FELIX-1270 Listing the imports uses the Bundle.getResource method to check whether
a required package is contained in the bundle or not. This causes the bundle to
be resolved which is not what we want if only looking at it. We must use the
Bundle.getEntry method in this case.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@812179 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
index 5cdbd66..9b9dda6 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
@@ -799,7 +799,7 @@
                         if ( ep == null )
                         {
                             String path = r4Import.getName().replace( '.', '/' );
-                            if ( bundle.getResource( path ) != null )
+                            if ( bundle.getEntry( path ) != null )
                             {
                                 continue;
                             }