code: @Override
       public boolean saveProperties(String servicePid, Dictionary<String, String> properties)
       {
           try {
               if (servicePid != null)
               {
                   ServiceReference caRef = bundleContext.getServiceReference(ConfigurationAdmin.class.getName());
                   if (caRef != null)
                   {
                       ConfigurationAdmin configAdmin = (ConfigurationAdmin)bundleContext.getService(caRef);
                       Configuration config = configAdmin.getConfiguration(servicePid);
      
                       config.update(properties);
                       return true;
                   }
               }
           } catch (IOException e) {
               e.printStackTrace();
           }
           return false;
       }
docs: Set the configuration properties for this Pid.
  @param servicePid The service Pid
  @param The properties to save.
  @return True if successful