code: @SuppressWarnings("unchecked")
      public Dictionary<String, String> getConfigurationProperties(Dictionary<String, String> dictionary, boolean returnCopy)
      {
          if (returnCopy)
              dictionary = putAll(dictionary, null);
          if (dictionary == null)
              dictionary = new Hashtable<String, String>();
          try {
              String servicePid = this.getServicePid();
              if (servicePid != null)
              {
                  ServiceReference caRef = context.getServiceReference(ConfigurationAdmin.class.getName());
                  if (caRef != null)
                  {
                      ConfigurationAdmin configAdmin = (ConfigurationAdmin)context.getService(caRef);
                      Configuration config = configAdmin.getConfiguration(servicePid);
  
                      Dictionary<String, String> configProperties = config.getProperties();
                      dictionary = putAll(configProperties, dictionary);
                  }
              }
          } catch (IOException e) {
              e.printStackTrace();
          }
          return dictionary;
      }
docs: Get the (persistent) configuration dictionary from the service manager.
  Note: Properties are stored under the activator's package name.
  @return The properties