FELIX-885 Only create a new factory configuration instance if the
pid is null or the place holder PID, otherwise get the configuration
with the pid

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@735450 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
index f20b81c..3e19140 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
@@ -839,7 +839,7 @@
 
     private Configuration getConfiguration( ConfigurationAdmin ca, String pid, String factoryPid ) throws IOException
     {
-        if ( factoryPid != null )
+        if ( factoryPid != null && ( pid == null || pid.equals( PLACEHOLDER_PID ) ) )
         {
             return ca.createFactoryConfiguration( factoryPid, null );
         }