Fix FELIX-3918

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1450116 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java
index a9e3eec..1e5a71c 100644
--- a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java
+++ b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java
@@ -442,6 +442,14 @@
             boolean isProxy = true;
             // Detect proxy default value.
             String setting = getInstanceManager().getContext().getProperty(PROXY_SETTINGS_PROPERTY);
+
+            // Felix also includes system properties in the bundle context property, however it is not the case of the
+            // other frameworks, so if it's null we should call System.getProperty.
+
+            if (setting == null) {
+                setting = System.getProperty(PROXY_SETTINGS_PROPERTY);
+            }
+
             if (setting == null || PROXY_ENABLED.equals(setting)) { // If not set => Enabled
                 isProxy = true;
             } else if (setting != null  && PROXY_DISABLED.equals(setting)) {